Renderer freeze when lock screen and login again |
pik33
|
The same problem here. The program stops rendering when Windows UAC blanks the screen and aks if I really want to blah blah.. After this the program no longer works.
The workaround was to do this when SDL_WINDOWEVENT_ENTER
Now it works but sometimes crashes with segmentation fault. The SDL_RENDER_DEVICE_RESET is never triggered. I lowered UAC settings, so the screen doesn't go dim anymore, but this is not a solution. When the SDL_RENDER_DEVICE_RESET is triggered? How to use it? How to avoid situation described above? |
|||||||||||||
|
pik33
|
My code stopped crashing when I moved all SDL graphics calls to one thread and one main loop. So my problem is solved (but I still don't know how to use SDL_RENDER_DEVICE_RESET and when it is triggered).
|
|||||||||||
|