Skip to content

[web: canvaskit] resources drawn on the wrong GL context result in bindTexture errors #86809

@yjbanov

Description

@yjbanov

This happened before (issue) and was fixed (PR), but it's happening again. I'm suspecting the issue might be because internally CanvasKit doesn't track which context a particular resource is coming from. WebGL, unlike OpenGL, does not allow sharing resources across different contexts, so when we use multiple contexts resources need to be rebound to the currently active context before drawing.

Skia issue: https://bugs.chromium.org/p/skia/issues/detail?id=12255
Internal issue: b/197480079

Metadata

Metadata

Labels

P0Critical issues such as a build break or regressiondependency: skiaSkia team may need to help use: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions