mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
(PS3) Use g_extern.draw_menu instead of block_swap
This commit is contained in:
parent
0b1bd6c276
commit
34951c121b
@ -2403,8 +2403,6 @@ bool rmenu_iterate(void)
|
||||
|
||||
if(preinit)
|
||||
{
|
||||
device_ptr->block_swap = true;
|
||||
|
||||
if(g_extern.console.rmenu.state.ingame_menu.enable)
|
||||
menu_stack_push(INGAME_MENU);
|
||||
|
||||
@ -2468,6 +2466,7 @@ bool rmenu_iterate(void)
|
||||
}
|
||||
|
||||
device_ptr->ctx_driver->swap_buffers();
|
||||
|
||||
bool quit, resize;
|
||||
unsigned width, height, frame_count;
|
||||
frame_count = 0;
|
||||
@ -2492,7 +2491,6 @@ deinit:
|
||||
if(g_extern.console.rmenu.state.ingame_menu.enable)
|
||||
menu_stack_pop();
|
||||
|
||||
device_ptr->block_swap = false;
|
||||
g_extern.draw_menu = false;
|
||||
g_extern.console.rmenu.state.ingame_menu.enable = false;
|
||||
|
||||
|
12
gfx/gl.c
12
gfx/gl.c
@ -1188,15 +1188,12 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
|
||||
|
||||
RARCH_PERFORMANCE_STOP(frame_run);
|
||||
|
||||
#if defined(HAVE_RMENU)
|
||||
if (!gl->block_swap)
|
||||
#endif
|
||||
context_swap_buffers_func();
|
||||
|
||||
#ifdef HAVE_RMENU
|
||||
if (g_extern.draw_menu)
|
||||
context_rmenu_frame_func(gl);
|
||||
else
|
||||
#endif
|
||||
context_swap_buffers_func();
|
||||
|
||||
#if !defined(HAVE_OPENGLES) && defined(HAVE_FFMPEG)
|
||||
if (gl->pbo_readback_enable)
|
||||
@ -1745,10 +1742,6 @@ static void gl_restart(void)
|
||||
if (!gl)
|
||||
return;
|
||||
|
||||
#ifdef HAVE_RMENU
|
||||
bool should_block_swap = gl->block_swap;
|
||||
#endif
|
||||
|
||||
gl_stop();
|
||||
#ifdef HAVE_CG
|
||||
gl_cg_invalidate_context();
|
||||
@ -1756,7 +1749,6 @@ static void gl_restart(void)
|
||||
gl_start();
|
||||
|
||||
#ifdef HAVE_RMENU
|
||||
gl->block_swap = should_block_swap;
|
||||
SET_TIMER_EXPIRATION(0, 30);
|
||||
#endif
|
||||
|
||||
|
@ -277,10 +277,6 @@ typedef struct gl
|
||||
GLfloat font_color[16];
|
||||
GLfloat font_color_dark[16];
|
||||
|
||||
#ifdef HAVE_RMENU
|
||||
bool block_swap;
|
||||
#endif
|
||||
|
||||
bool egl_images;
|
||||
|
||||
#if !defined(HAVE_OPENGLES) && defined(HAVE_FFMPEG)
|
||||
|
Loading…
Reference in New Issue
Block a user