mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
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:
parent
2c29884d7d
commit
7de7c3d743
2
gfx/gl.c
2
gfx/gl.c
@ -1488,7 +1488,9 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_RMENU
|
||||||
if (!(lifecycle_mode_state & (1ULL << MODE_MENU_DRAW)))
|
if (!(lifecycle_mode_state & (1ULL << MODE_MENU_DRAW)))
|
||||||
|
#endif
|
||||||
context_swap_buffers_func();
|
context_swap_buffers_func();
|
||||||
|
|
||||||
#if !defined(HAVE_OPENGLES) && defined(HAVE_FFMPEG)
|
#if !defined(HAVE_OPENGLES) && defined(HAVE_FFMPEG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user