Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Enabling dynamic vsync and removing old SDL1.2 calls
Browse files Browse the repository at this point in the history
  • Loading branch information
atsb committed Sep 2, 2023
1 parent 9d3ccc8 commit fe69ec9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/SDL/render.c
Expand Up @@ -1005,19 +1005,9 @@ flags |= SDL_WINDOW_FULLSCREEN_DESKTOP; // ATSB: This is put back to allow prope
#endif

SDL_GL_MakeCurrent(sdlwindow, glcontext);

// disable VSYNC
//SDL_GL_SetSwapInterval(0);

SDL_GL_SetSwapInterval(-1); // ATSB: This is dynamic vsync
SDL_ShowCursor(SDL_DISABLE);

#ifdef _MACOSX_FIX_GL
if (!((flags & SDL_WINDOW_FULLSCREEN_DESKTOP)))
{
SDL_WM_GrabInput(SDL_GRAB_ON);
}
#endif

lastWidth = MAIN_WindowWidth;
lastHeight = MAIN_WindowHeight;
lastDepth = MAIN_WindowDepth;
Expand Down

0 comments on commit fe69ec9

Please sign in to comment.