Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 22d08d1

Browse files
author
Harry Terkelsen
authored
Set the current GL context to the most recently acquired Surface (#16572)
1 parent c210c3d commit 22d08d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/web_ui/lib/src/engine/compositor/surface.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class Surface {
4747
/// The given [size] is in physical pixels.
4848
SurfaceFrame acquireFrame(ui.Size size) {
4949
final SkSurface surface = acquireRenderSurface(size);
50+
canvasKit.callMethod('setCurrentContext', <int>[surface.context]);
5051

5152
if (surface == null) return null;
5253

0 commit comments

Comments
 (0)