graphicsdriver/opengl: Use WebGL2 API on go2cpp

This commit is contained in:
Hajime Hoshi 2020-12-14 02:02:45 +09:00
parent 547621ddad
commit f440e368b3

View File

@ -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()
)