diff --git a/internal/graphicsdriver/opengl/context_js.go b/internal/graphicsdriver/opengl/context_js.go index 1f1687543..bd59ef9fe 100644 --- a/internal/graphicsdriver/opengl/context_js.go +++ b/internal/graphicsdriver/opengl/context_js.go @@ -84,7 +84,7 @@ const ( ) var ( - isWebGL2Available = !forceWebGL1 && js.Global().Get("WebGL2RenderingContext").Truthy() + isWebGL2Available = !forceWebGL1 && (js.Global().Get("WebGL2RenderingContext").Truthy() || js.Global().Get("go2cpp").Truthy()) needsRestoring_ = !web.IsMobileBrowser() && !js.Global().Get("go2cpp").Truthy() )