Skip to content

Commit ceb79e8

Browse files
author
TheSillyDoggo
committed
nyaa
1 parent 7e7e754 commit ceb79e8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ class $modify (MenuLayer)
135135
if (!MenuLayer::init())
136136
return false;
137137

138+
#ifdef __APPLE__
139+
#include <OpenGL/gl.h>
140+
141+
GLint sync = 0;
142+
CGLContextObj ctx = CGLGetCurrentContext();
143+
144+
CGLSetParameter(ctx, kCGLCPSwapInterval, &sync);
145+
#endif
146+
147+
138148
if (!v)
139149
{
140150
if (Client::get()->useImGuiUI())

0 commit comments

Comments
 (0)