summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexRixhardson <alexrixhardson@gmail.com>2019-09-18 22:50:16 +0200
committerAlexRixhardson <alexrixhardson@gmail.com>2019-09-18 22:50:16 +0200
commit973a4fe50f9dfd67f3cf4f81b912853fd80992a6 (patch)
tree24d06dac39c037480ab7722c8c1034e83d09cae9
parenta1fcac640061c45e9dc55b1189e82aed3e2672fb (diff)
Fix crash on iOS devices during rotate
-rw-r--r--platform/iphone/gl_view.mm3
1 files changed, 0 insertions, 3 deletions
diff --git a/platform/iphone/gl_view.mm b/platform/iphone/gl_view.mm
index 4641b2c4ac..dfca2e3dd7 100644
--- a/platform/iphone/gl_view.mm
+++ b/platform/iphone/gl_view.mm
@@ -337,12 +337,9 @@ static void clear_touches() {
// the same size as our display area.
- (void)layoutSubviews {
- //printf("HERE\n");
[EAGLContext setCurrentContext:context];
[self destroyFramebuffer];
[self createFramebuffer];
- [self drawView];
- [self drawView];
}
- (BOOL)createFramebuffer {