From 973a4fe50f9dfd67f3cf4f81b912853fd80992a6 Mon Sep 17 00:00:00 2001 From: AlexRixhardson Date: Wed, 18 Sep 2019 22:50:16 +0200 Subject: [PATCH] Fix crash on iOS devices during rotate --- platform/iphone/gl_view.mm | 3 --- 1 file changed, 3 deletions(-) diff --git a/platform/iphone/gl_view.mm b/platform/iphone/gl_view.mm index 4641b2c4acb..dfca2e3dd72 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 {