godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.75k stars 21.12k forks source link

Unable to change fullscreen resolution? #14542

Closed TheSHEEEP closed 4 years ago

TheSHEEEP commented 6 years ago

Operating system or device, Godot version, GPU Model and driver (if graphics related): Windows 64bit & NVIDIA GeForce GTX 970 Linux 64bit & NVIDIA GeForce GTX 1060 Godot 2.1.4

Issue description: This is the bug report belonging to this question. Since I had no answers or comments in more than three days, I assume I have hit a bug? Or a missing feature? Either way, I am logging this as a bug - though please correct me if I'm just doing this wrong or this is actually a missing feature.

Steps to reproduce: Set your application to fullscreen via OS.set_window_fullscreen(true). Then, change the size of the window via OS.set_window_size(). It will mess up the rendering on Windows and on Linux it will mess up the rendering for one frame before returning the resolution to the previous one.

Link to minimal example project: Just use the Window Management demo (best on Windows, but also "messes up" in Linux for me). Activate fullscreen, then click resize. You'll see. If you don't and it happens only for me, I can provide screenshots.