mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 12:40:07 +00:00
Add a warning when vsync cannot be changed...
This commit is contained in:
parent
86e080476a
commit
ce3bdc9aec
4
gfx/gl.c
4
gfx/gl.c
@ -272,6 +272,10 @@ static void gl_set_nonblock_state(void *data, bool state)
|
||||
{
|
||||
SSNES_LOG("GL VSync => %s\n", state ? "off" : "on");
|
||||
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, state ? 0 : 1);
|
||||
int attr = 0;
|
||||
SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL, &attr);
|
||||
if ((bool)attr == state)
|
||||
SSNES_WARN("Couldn't change VSync settings. Fast forwarding might not work.\n");
|
||||
//SDL_SetVideoMode(gl->win_width, gl->win_height, 32, SDL_OPENGL | SDL_RESIZABLE | (g_settings.video.fullscreen ? SDL_FULLSCREEN : 0));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user