mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-11-03 02:23:48 +08:00
graphicsdriver/opengl: Use WebGL2 API on go2cpp
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user