mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 17:10:12 +00:00
Set swap interval correctly in gl_init().
This commit is contained in:
parent
a6268692b6
commit
98c9da9dda
2
gfx/gl.c
2
gfx/gl.c
@ -1950,7 +1950,7 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
|
||||
context_get_video_size_func(&gl->full_x, &gl->full_y);
|
||||
RARCH_LOG("Detecting screen resolution %ux%u.\n", gl->full_x, gl->full_y);
|
||||
|
||||
context_swap_interval_func(video->vsync ? 1 : 0);
|
||||
context_swap_interval_func(video->vsync ? g_settings.video.swap_interval : 0);
|
||||
|
||||
unsigned win_width = video->width;
|
||||
unsigned win_height = video->height;
|
||||
|
Loading…
Reference in New Issue
Block a user