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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user