opengl: Bug fix: wrong argument to js.Value.Call

This commit is contained in:
Hajime Hoshi 2018-06-30 12:32:15 +09:00
parent 6e51d31524
commit 2c0f3d4302

View File

@ -328,10 +328,10 @@ func (c *Context) UseProgram(p Program) {
func (c *Context) DeleteProgram(p Program) {
gl := c.gl
if !gl.Call("isProgram", p).Bool() {
if !gl.Call("isProgram", p.value).Bool() {
return
}
gl.Call("deleteProgram", p)
gl.Call("deleteProgram", p.value)
}
func (c *Context) getUniformLocationImpl(p Program, location string) uniformLocation {