Merge pull request #32194 from AlexRixhardson/fix-7945

Fixes crash described in issue 7945 (Duplicated [self drawView] in iphone gl_view)
This commit is contained in:
Rémi Verschelde 2019-09-24 09:17:54 +02:00 committed by GitHub
commit 1ecdd5b5cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {