Fix RGUI in gl.c.

RGUI sets MODE_MENU_DRAW causing
context_swap_func to be skipped entirely.
Tried removing MODE_MENU_DRAW in rgui, but gx_video still seems to rely
on MODE_MENU_DRAW being set, so I didn't fix it in RGUI. Someone needs
to fix gx_video to not depend on lifecycle.
This commit is contained in:
Themaister 2013-04-10 20:15:51 +02:00
parent 2c29884d7d
commit 7de7c3d743

View File

@ -1488,7 +1488,9 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
}
#endif
#ifdef HAVE_RMENU
if (!(lifecycle_mode_state & (1ULL << MODE_MENU_DRAW)))
#endif
context_swap_buffers_func();
#if !defined(HAVE_OPENGLES) && defined(HAVE_FFMPEG)