Fix crash on iOS devices during rotate

This commit is contained in:
AlexRixhardson 2019-09-18 22:50:16 +02:00
parent a1fcac6400
commit 973a4fe50f

View file

@ -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 {