In Fullscreen, after 'Alt + Tab', my program just Blank Scre |
In Fullscreen, after 'Alt + Tab', my program just Blank Scre |
Sik
|
I think that's specific to Direct3D. Not sure if OpenGL loses its
textures on video mode change. Anyway, you can check when the window gains or loses focus if needed. Look up the SDL_WINDOWEVENT event as well as the SDL_WindowEventID enumeration. 2013/2/6, ricoh11:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
In Fullscreen, after 'Alt + Tab', my program just Blank Scre |
gabomdq
|
2013/2/6 ricoh11
If you are using Direct3D or OpenGL ES on some Android devices, you may lose your "context" (device lost in D3D speak) and have to recreate the textures. We discussed about adding an event to notify the user of this situation, but never got around to implement it. The Direct3D backend uses managed textures which should recreate the textures automatically when the device is lost, however, if you use rendering to textures (http://wiki.libsdl.org/moin.cgi/SDL_SetRenderTarget), this won't be the case as they are not managed. Is this your case? -- Gabriel. |
|||||||||||||
|