mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
opengl: Bug fix: wrong argument to js.Value.Call
This commit is contained in:
parent
6e51d31524
commit
2c0f3d4302
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user