enable vsync on desktop
parent
746ec9b00d
commit
bdd774fd50
|
@ -67,7 +67,11 @@ void platform_create_window(const char *title) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
InitWindow(screenWidth, screenHeight, title);
|
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)
|
#if !defined(PLATFORM_WEB)
|
||||||
screenWidth = (uint16_t)GetScreenWidth();
|
screenWidth = (uint16_t)GetScreenWidth();
|
||||||
|
|
Loading…
Reference in New Issue