From 814aaa95cdaa05c0f70b66ec2af51565943e0bf3 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 18 Jun 2022 18:09:58 -0300 Subject: [PATCH] Fix compilation on Windows --- src/modules/window/sdl/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/window/sdl/Window.cpp b/src/modules/window/sdl/Window.cpp index b758de5ef..0666216a0 100644 --- a/src/modules/window/sdl/Window.cpp +++ b/src/modules/window/sdl/Window.cpp @@ -1190,7 +1190,7 @@ void Window::swapBuffers() // - DWM refreshes don't always match the refresh rate of the monitor the window is in (or the requested swap // interval), so we only use it when they do match. // - The user may force GL vsync, and DwmFlush shouldn't be used together with GL vsync. - if (context != nullptr && !settings.fullscreen && swapInterval == 1) + if (!settings.fullscreen && swapInterval == 1) { // Desktop composition is always enabled in Windows 8+. But DwmIsCompositionEnabled won't always return true... // (see DwmIsCompositionEnabled docs).