| Summary: | SDL don't update screen in fullscreen mode | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Tomas Ukkonen <nop> |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72 |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Example code showing only blank screen on Debian Sid | ||
You need to call SDL_PollEvent or SDL_PumpEvents regularly (typically in a while-loop every frame, in SDL_PollEvent's case) for the window to respond and display as expected. |
Created attachment 2218 [details] Example code showing only blank screen on Debian Sid SDL fullscreen mode (SDL_WINDOW_FULLSCREEN_DESKTOP) shows only blank black empty screen on Debian Sid. Same code works correctly in windowed mode. This is either SDL2 bug or Debian Sid X libraries are buggy. Fullscreen mode works correctly in Debian stable (virtualbox machine without latest nvidia drivers). uname -a Linux moria 4.0.0-2-amd64 #1 SMP Debian 4.0.7-1 (2015-07-06) x86_64 GNU/Linux dpkg -l xserver* | grep nvidia ii xserver-xorg-video-nvidia 340.76-2 amd64 NVIDIA binary Xorg driver