func (osx *osxSystemObject) EnableVSync(enable bool) { var _enable C.int if enable { _enable = 1 } C.EnableVSync(unsafe.Pointer(osx.context), _enable) }
func (osx *osxSystemObject) EnableVSync(enable bool) { globalLock.Lock() defer globalLock.Unlock() var _enable C.int if enable { _enable = 1 } C.EnableVSync(unsafe.Pointer(osx.context), _enable) }