diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-18 20:28:39 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-18 20:28:39 +0400 |
commit | feeab1ad53f1b7cd4496fb8e7f173f21e460aac0 (patch) | |
tree | 3c9142be45eaf2b7d85b8de2b88cdf4e2243769f /source/gameengine/BlenderRoutines/KX_BlenderGL.cpp | |
parent | fb2b3155f72d3bc6d2025d332cb843befea78d75 (diff) |
Fix #34997: when starting the game engine in one window and switching to a second
window, the game would stop drawing in the first and mess up the OpenGL state of
the second.
Also fixes glPushAttrib/glPopAttrib getting out of sync in some cases.
Diffstat (limited to 'source/gameengine/BlenderRoutines/KX_BlenderGL.cpp')
-rw-r--r-- | source/gameengine/BlenderRoutines/KX_BlenderGL.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp index f43f8c30d57..61598995040 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp @@ -93,6 +93,11 @@ void BL_SwapBuffers(wmWindow *win) wm_window_swap_buffers(win); } +void BL_MakeDrawable(wmWindowManager *wm, wmWindow *win) +{ + wm_window_make_drawable(wm, win); +} + static void DisableForText() { glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); /* needed for texture fonts otherwise they render as wireframe */ |