mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 01:19:01 +00:00
(PS3) Sets vsync correctly now on startup
This commit is contained in:
parent
1a4c122310
commit
4c1c9cfff5
@ -33,13 +33,12 @@
|
||||
static struct texture_image menu_texture;
|
||||
static PSGLdevice* gl_device;
|
||||
static PSGLcontext* gl_context;
|
||||
static unsigned swap_interval;
|
||||
|
||||
void gfx_ctx_set_swap_interval(unsigned interval, bool inited)
|
||||
{
|
||||
swap_interval = interval;
|
||||
(void)inited;
|
||||
|
||||
if (inited)
|
||||
if (gl_context)
|
||||
{
|
||||
if (interval)
|
||||
glEnable(GL_VSYNC_SCE);
|
||||
@ -161,7 +160,6 @@ bool gfx_ctx_init(void)
|
||||
psglMakeCurrent(gl_context, gl_device);
|
||||
psglResetCurrentContext();
|
||||
|
||||
gfx_ctx_set_swap_interval(swap_interval, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user