Set the current GL context to the most recently acquired Surface (flutter/engine#16572)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user