mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +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) {
|
func (c *Context) DeleteProgram(p Program) {
|
||||||
gl := c.gl
|
gl := c.gl
|
||||||
if !gl.Call("isProgram", p).Bool() {
|
if !gl.Call("isProgram", p.value).Bool() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
gl.Call("deleteProgram", p)
|
gl.Call("deleteProgram", p.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Context) getUniformLocationImpl(p Program, location string) uniformLocation {
|
func (c *Context) getUniformLocationImpl(p Program, location string) uniformLocation {
|
||||||
|
Loading…
Reference in New Issue
Block a user