engineCallbackOnPresent should return false if glContext is invalid (flutter/engine#20337)

Co-authored-by: Kaushik Iska <kaushikiska@google.com>
This commit is contained in:
Kaushik Iska
2020-08-10 16:44:20 -07:00
committed by GitHub
parent 110d1a3398
commit bbe13c2353

View File

@@ -329,6 +329,7 @@ static bool OnAcquireExternalTexture(FlutterEngine* engine,
- (bool)engineCallbackOnPresent {
if (!_mainOpenGLContext) {
return false;
}
[_mainOpenGLContext flushBuffer];
return true;