mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-01 19:00:34 +02:00
SDL backend: enable vsync to prevent tearing. (#325)
This commit is contained in:
committed by
GitHub
parent
310e8c9dc0
commit
aea6af174a
@@ -493,7 +493,7 @@ int main(int argc, char **argv) {
|
|||||||
Core::height = h;
|
Core::height = h;
|
||||||
|
|
||||||
SDL_GLContext context = SDL_GL_CreateContext(sdl_window);
|
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 = SDL_CreateRenderer(sdl_window, -1,
|
||||||
SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
|
SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
|
||||||
|
Reference in New Issue
Block a user