diff --git a/code/foundation/src/platform/arch.h b/code/foundation/src/platform/arch.h index 7fe5552..19f459e 100644 --- a/code/foundation/src/platform/arch.h +++ b/code/foundation/src/platform/arch.h @@ -67,7 +67,11 @@ void platform_create_window(const char *title) { #endif InitWindow(screenWidth, screenHeight, title); - SetWindowState(/*FLAG_WINDOW_UNDECORATED|*/FLAG_WINDOW_MAXIMIZED|FLAG_WINDOW_RESIZABLE|FLAG_MSAA_4X_HINT/* |FLAG_VSYNC_HINT */); + uint32_t flags = /*FLAG_WINDOW_UNDECORATED|*/FLAG_WINDOW_MAXIMIZED|FLAG_WINDOW_RESIZABLE|FLAG_MSAA_4X_HINT; + #if !defined(PLATFORM_WEB) + flags |= FLAG_VSYNC_HINT; + #endif + SetWindowState(flags); #if !defined(PLATFORM_WEB) screenWidth = (uint16_t)GetScreenWidth();