Skip to content

Commit

Permalink
Update rcore_desktop_sdl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed May 21, 2024
1 parent 3abb6d9 commit b212750
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/platforms/rcore_desktop_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,14 +1533,8 @@ int InitPlatform(void)
TRACELOG(LOG_INFO, " > Render size: %i x %i", CORE.Window.render.width, CORE.Window.render.height);
TRACELOG(LOG_INFO, " > Viewport offsets: %i, %i", CORE.Window.renderOffset.x, CORE.Window.renderOffset.y);

if (CORE.Window.flags & FLAG_VSYNC_HINT)
{
SDL_GL_SetSwapInterval(1);
}
else
{
SDL_GL_SetSwapInterval(0);
}
if (CORE.Window.flags & FLAG_VSYNC_HINT) SDL_GL_SetSwapInterval(1);
else SDL_GL_SetSwapInterval(0);
}
else
{
Expand Down

0 comments on commit b212750

Please sign in to comment.