Update SurfaceViewController.m

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-02-17 15:06:11 +07:00
1 parent f2ab2d4825
commit 77efcb5fe3
1 file changed
+2 -2
+2 -2
View File
@@ -121,7 +121,7 @@ BOOL shouldTriggerClick = NO;
ADD_BUTTON_VISIBLE(@"Esc", escape, CGRectMake(width - 5 - 80, height - 5 - 30, BTN_RECT));
ADD_BUTTON_VISIBLE(@"Fullscreen", f11, CGRectMake(width - 5 - 80, 5, BTN_RECT));
// ADD_BUTTON_VISIBLE(@"Fullscreen", f11, CGRectMake(width - 5 - 80, 5, BTN_RECT));
[self.view addSubview:inputView];
[inputView becomeFirstResponder];
@@ -133,7 +133,7 @@ BOOL shouldTriggerClick = NO;
MGLKView *view = glView = (MGLKView *) self.view;
view.drawableDepthFormat = MGLDrawableDepthFormat24;
view.enableSetNeedsDisplay = YES;
view.preferredFramesPerSecond = 1000;
[view setPreferredFramesPerSecond:1000];
// Init GLES
self.context = [[MGLContext alloc] initWithAPI:kMGLRenderingAPIOpenGLES3];