Skip to content

Commit d76bf65

Browse files
committed
default vsync to false on Windows to work around glfw error nmwsharp#329
1 parent 5b3a2e4 commit d76bf65

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/options.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ bool allowHeadlessBackends = false;
1313
bool errorsThrowExceptions = false;
1414
bool debugDrawPickBuffer = false;
1515
int maxFPS = 60;
16+
17+
#ifdef _WIN32
18+
// set the default vsync to false on windows, to workaround an glfw errors from an alleged driver bug
19+
bool enableVSync = false;
20+
#else
1621
bool enableVSync = true;
22+
#endif
23+
1724
bool usePrefsFile = false;
1825
bool initializeWithDefaultStructures = true;
1926
bool alwaysRedraw = false;

0 commit comments

Comments
 (0)