add sync-video setting

This commit is contained in:
David Rose 2008-05-15 23:22:44 +00:00
parent 6ed5f67db6
commit da154168a3

View File

@ -106,6 +106,10 @@ void osxGraphicsStateGuardian::reset()
*/ */
GLGraphicsStateGuardian::reset(); GLGraphicsStateGuardian::reset();
// Apply the video-sync setting.
GLint value = sync_video ? 1 : 0;
aglSetInteger(_aglcontext, AGL_SWAP_INTERVAL, &value);
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////