Use EXT_swap_control_tear when available to ensure that VSync never slows things down (tears instead if it can't keep up, better than stuttering)

This commit is contained in:
Henrik Rydgard committed 2013-07-07 11:25:18 +02:00
1 parent cee45d0ad2
commit 1256d5528d
2 files changed
+13 -2

No files matched your search

+1
View File
@@ -196,6 +196,7 @@ bool GL_Init(HWND window, std::string *error_message) {
glGetIntegerv(GL_MINOR_VERSION, &OpenGLVersion[1]);
glstate.Initialize();
CheckGLExtensions();
GL_SetVSyncInterval(0);
if (enableGLDebug && glewIsSupported("GL_ARB_debug_output")) {
glDebugMessageCallbackARB((GLDEBUGPROCARB)&DebugCallbackARB, 0); // print debug output to stderr