diff --git a/src/platforms/rcore_desktop_win32.c b/src/platforms/rcore_desktop_win32.c index 70ebd8b92..4e39d554d 100644 --- a/src/platforms/rcore_desktop_win32.c +++ b/src/platforms/rcore_desktop_win32.c @@ -2149,10 +2149,10 @@ static void UpdateFlags(HWND hwnd, unsigned desiredFlags, int width, int height) // Flags that just apply immediately without needing any operations CORE.Window.flags |= (desiredFlags & FLAG_MASK_NO_UPDATE); - int vsync = (CORE.Window.flags & FLAG_VSYNC_HINT)? 1 : 0; + int vsync = (desiredFlags & FLAG_VSYNC_HINT)? 1 : 0; if (wglSwapIntervalEXT) { - (*wglSwapIntervalEXT)(vsync); + wglSwapIntervalEXT(vsync); if (vsync) CORE.Window.flags |= FLAG_VSYNC_HINT; else CORE.Window.flags &= ~FLAG_VSYNC_HINT; }