SDL2: Recovering from alt-tabbing in full-screen mode - HOW? |
SDL2: Recovering from alt-tabbing in full-screen mode - HOW? |
Kai Sterker
Guest
|
There should be events that notify you when target textures need to be updated or recreated. See https://wiki.libsdl.org/SDL_EventType
SDL_RENDER_TARGETS_RESET the render targets have been reset and their contents need to be updated (>= SDL 2.0.2) SDL_RENDER_DEVICE_RESET the device has been reset and all textures need to be recreated (>= SDL 2.0.4) Since I do not use render targets in my own application, I cannot say how well that works, however. In general, it seems the SDL community is smaller these days. Havn't received much input to my own mails either. Kai On Fri, Jul 22, 2016 at 3:45 PM, Ande wrote:
|
|||||||||||||
|
Re: SDL2: Recovering from alt-tabbing in full-screen mode - |
Ande
|
Thank you! I had missed all that in the documentation.
Too bad every application still has to take care of those manually. It seems that won't solve the OpenGL issue as release notes tell DEVICE_RESET is sent only for windows D3D. |
|||||||||||
|
SDL2: Recovering from alt-tabbing in full-screen mode - HOW? |
Kai Sterker
Guest
|
On Fri, Jul 22, 2016 at 4:53 PM, Ande wrote:
Took me a while to find them there as well, even though I knew they had to be there :-)
That's my understanding as well. Personally, I have no experience with OpenGL (under Windows or else), so no idea where your (users) problem originates from. But looks more like a shoddy video driver and not especially related to the combination of SDL + OpenGL as such. Kai |
|||||||||||||||
|