mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
js: Update callers for headless-gl API
This commit is contained in:
parent
5de37691ee
commit
9a3c6bd8c4
@ -83,8 +83,7 @@ func NewContext() *Context {
|
||||
}
|
||||
} else {
|
||||
// Use headless-gl for testing.
|
||||
nodeGl := js.Global.Call("require", "gl")
|
||||
webglContext := nodeGl.Call("createContext", 16, 16)
|
||||
webglContext := js.Global.Call("require", "gl").Invoke(16, 16)
|
||||
gl = &webgl.Context{Object: webglContext}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user