Update SurfaceViewController.m

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-02-17 15:07:55 +07:00
1 parent 77efcb5fe3
commit eab1fe58cc
1 file changed
+1 -1
+1 -1
View File
@@ -133,7 +133,7 @@ BOOL shouldTriggerClick = NO;
MGLKView *view = glView = (MGLKView *) self.view;
view.drawableDepthFormat = MGLDrawableDepthFormat24;
view.enableSetNeedsDisplay = YES;
[view setPreferredFramesPerSecond:1000];
[self setPreferredFramesPerSecond:1000];
// Init GLES
self.context = [[MGLContext alloc] initWithAPI:kMGLRenderingAPIOpenGLES3];