mirror of
https://github.com/XProger/OpenLara.git
synced 2025-01-17 21:09:00 +01:00
SDL backend: enable vsync to prevent tearing. (#325)
This commit is contained in:
parent
310e8c9dc0
commit
aea6af174a
@ -493,7 +493,7 @@ int main(int argc, char **argv) {
|
||||
Core::height = h;
|
||||
|
||||
SDL_GLContext context = SDL_GL_CreateContext(sdl_window);
|
||||
SDL_GL_SetSwapInterval(0);
|
||||
SDL_GL_SetSwapInterval(1);
|
||||
|
||||
sdl_renderer = SDL_CreateRenderer(sdl_window, -1,
|
||||
SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user