提交 db577296 编写于 作者: A Adam Barth

Merge pull request #2154 from abarth/better_crash_fix

Improve the crash fix in rasterizer_mojo
......@@ -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.
先完成此消息的编辑!
想要评论请 注册