1
0
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:
Manuel Alfayate Corchete 2021-02-26 02:27:25 +01:00 committed by GitHub
parent 310e8c9dc0
commit aea6af174a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);