(PS3) gl_restart works properly now

This commit is contained in:
Twinaphex 2012-05-29 17:20:23 +02:00
parent 8f6c4f30c3
commit 27aa887fcb

View File

@ -1267,14 +1267,38 @@ static void gl_stop(void)
static void gl_restart(void) static void gl_restart(void)
{ {
#ifdef HAVE_CG_MENU
bool should_menu_render;
#endif
#ifdef RARCH_CONSOLE
bool should_block_swap;
#endif
gl_t *gl = driver.video_data; gl_t *gl = driver.video_data;
if (!gl) if (!gl)
return; return;
#ifdef RARCH_CONSOLE
should_block_swap = gl->block_swap;
#endif
#ifdef HAVE_CG_MENU
should_menu_render = gl->menu_render;
#endif
gl_stop(); gl_stop();
gl_cg_invalidate_context(); gl_cg_invalidate_context();
gl_start(); gl_start();
#ifdef HAVE_CG_MENU
gl->menu_render = should_menu_render;
#endif
gl->frame_count = 0;
#ifdef RARCH_CONSOLE
gl->block_swap = should_block_swap;
SET_TIMER_EXPIRATION(gl, 30);
#endif
} }
#endif #endif