提交 535afcb0 编写于 作者: A Adam Barth

Improve the crash fix in rasterizer_mojo

The previous version can still crash if we try to draw between the time when we
initialize context_ and when we actually make the MGL context current.
上级 c9549715
......@@ -46,7 +46,7 @@ void RasterizerMojo::ConnectToRasterizer (
void RasterizerMojo::Draw(uint64_t layer_tree_ptr,
const DrawCallback& callback) {
TRACE_EVENT0("flutter", "RasterizerMojo::Draw");
if (!context_) {
if (!MGLGetCurrentContext()) {
callback.Run();
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册