mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
add sync-video setting
This commit is contained in:
parent
6ed5f67db6
commit
da154168a3
@ -106,6 +106,10 @@ void osxGraphicsStateGuardian::reset()
|
||||
*/
|
||||
|
||||
GLGraphicsStateGuardian::reset();
|
||||
|
||||
// Apply the video-sync setting.
|
||||
GLint value = sync_video ? 1 : 0;
|
||||
aglSetInteger(_aglcontext, AGL_SWAP_INTERVAL, &value);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user