未验证 提交 43067ed4 编写于 作者: K Kaushik Iska 提交者: GitHub

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

Co-authored-by: NKaushik Iska <kaushikiska@google.com>
上级 b77e45cb
......@@ -329,6 +329,7 @@ static bool OnAcquireExternalTexture(FlutterEngine* engine,
- (bool)engineCallbackOnPresent {
if (!_mainOpenGLContext) {
return false;
}
[_mainOpenGLContext flushBuffer];
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册