Ticket #741 (new task)
Reload all GL state when toggling fullscreen on OS X
| Reported by: | Philip | Owned by: | |
|---|---|---|---|
| Priority: | Should Have | Milestone: | Backlog |
| Component: | Core engine | Keywords: | |
| Cc: |
Description
On OS X, switching from fullscreen to windowed mode apparently triggers errors like ogl_program_get_uniform_location(shader, "TextureMatrix1") returning negative values, and the textures disappear and everything goes black and grey and sometimes it crashes.
I guess the GL context state gets lost when toggling fullscreen, in which case we need to destroy and reload all our GL objects (textures, shaders, vertex buffers, framebuffers, etc) when switching.
Change History
Note: See
TracTickets for help on using
tickets.

A similar problem occurs on Windows using SDL 1.2 instead of our custom implementation, see #935. Apparently it has been fixed in SDL 1.3, so that may be an alternative solution.