js: Update callers for headless-gl API

This commit is contained in:
Hajime Hoshi 2016-01-20 01:18:53 +09:00
parent 5de37691ee
commit 9a3c6bd8c4

View File

@ -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}
}