mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/opengl: Use WebGL2 API on go2cpp
This commit is contained in:
parent
547621ddad
commit
f440e368b3
@ -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()
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user