Set the current GL context to the most recently acquired Surface (flutter/engine#16572)

This commit is contained in:
Harry Terkelsen
2020-02-13 10:49:13 -08:00
committed by GitHub
parent d4cd863858
commit 3dfb7710f9

View File

@@ -47,6 +47,7 @@ class Surface {
/// The given [size] is in physical pixels.
SurfaceFrame acquireFrame(ui.Size size) {
final SkSurface surface = acquireRenderSurface(size);
canvasKit.callMethod('setCurrentContext', <int>[surface.context]);
if (surface == null) return null;