summaryrefslogtreecommitdiff
path: root/cogl/cogl-onscreen-template-private.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2012-12-05 19:31:29 +0000
committerRobert Bragg <robert@linux.intel.com>2013-01-21 14:20:34 +0000
commite0f5167540069d7320a34757c775346985d1f73a (patch)
treea8a15a89ae4bbfbf051ff5ca35bfed38f6b5121f /cogl/cogl-onscreen-template-private.h
parentc6d6035b31cbe3b7ebe5edb8c7b2ebe955e17d9b (diff)
downloadcogl-e0f5167540069d7320a34757c775346985d1f73a.tar.gz
sdl: Bind the default window when currently bound window is destroyed
Cogl always needs to have the context bound to something so that it can freely create resources such as textures even if there is no current window. When the currently bound SDLWindow is destroyed, SDL apparently explicitly unbinds the GL context. If something then later for example tries to create a texture Cogl would start getting GL errors and fail. To fix this the SDL winsys now just binds the dummy window before deiniting the currently bound onscreen. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 2c0cfdefbb9d1ac5097d98887d3581b67a324fae)
Diffstat (limited to 'cogl/cogl-onscreen-template-private.h')
0 files changed, 0 insertions, 0 deletions