Skip to content

Commit

Permalink
Make tidy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Spodi committed Feb 16, 2025
1 parent 1b93f59 commit 44292f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/graphic/Fast3D/gfx_sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ static inline void sync_framerate_with_timer() {
static void gfx_sdl_swap_buffers_begin() {
if (vsync_enabled != Ship::Context::GetInstance()->GetConsoleVariables()->GetInteger(CVAR_VSYNC_ENABLED, 1)) {
// Make sure only 0 or 1 is set.
vsync_enabled = (Ship::Context::GetInstance()->GetConsoleVariables()->GetInteger(CVAR_VSYNC_ENABLED, 1) ? 1 : 0);
vsync_enabled =
(Ship::Context::GetInstance()->GetConsoleVariables()->GetInteger(CVAR_VSYNC_ENABLED, 1) ? 1 : 0);
SDL_GL_SetSwapInterval(vsync_enabled);
SDL_RenderSetVSync(renderer, vsync_enabled);
}
Expand Down

0 comments on commit 44292f9

Please sign in to comment.