Skip to content

Commit

Permalink
Fix vsync-off in conf.lua when vulkan is used
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jan 8, 2025
1 parent f0a7a19 commit 21c9c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/window/sdl/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,8 @@ bool Window::setWindow(int width, int height, WindowSettings *settings)
needsetmode = true;
}

windowRenderer = renderer;

// Make sure the window keeps any previously set icon.
setIcon(icon.get());

Expand All @@ -650,8 +652,6 @@ bool Window::setWindow(int width, int height, WindowSettings *settings)

updateSettings(f, false);

windowRenderer = renderer;

if (graphics.get())
{
double scaledw, scaledh;
Expand Down

0 comments on commit 21c9c06

Please sign in to comment.