mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix compilation on Windows
This commit is contained in:
@@ -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
|
// - 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.
|
// 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.
|
// - 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...
|
// Desktop composition is always enabled in Windows 8+. But DwmIsCompositionEnabled won't always return true...
|
||||||
// (see DwmIsCompositionEnabled docs).
|
// (see DwmIsCompositionEnabled docs).
|
||||||
|
|||||||
Reference in New Issue
Block a user