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 { } else {
// Use headless-gl for testing. // Use headless-gl for testing.
nodeGl := js.Global.Call("require", "gl") webglContext := js.Global.Call("require", "gl").Invoke(16, 16)
webglContext := nodeGl.Call("createContext", 16, 16)
gl = &webgl.Context{Object: webglContext} gl = &webgl.Context{Object: webglContext}
} }