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:
@@ -2130,7 +2130,7 @@ void wm_event_do_handlers(bContext *C)
|
||||
CTX_wm_region_set(C, region_event_inside(C, &event->x));
|
||||
|
||||
/* MVC demands to not draw in event handlers... but we need to leave it for ogl selecting etc */
|
||||
wm_window_make_drawable(C, win);
|
||||
wm_window_make_drawable(wm, win);
|
||||
|
||||
wm_region_mouse_co(C, event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user