Skip to content

Commit

Permalink
Merge pull request #25 from EngoEngine/mobile-context-fix
Browse files Browse the repository at this point in the history
changes to mobile context calls
  • Loading branch information
Noofbiz authored Mar 1, 2019
2 parents 9a254ae + 0376a0a commit 19ac4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gl_mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ func (c *Context) TexImage2D(target, level, internalFormat, format, kind int, da
}

func (c *Context) TexImage2DEmpty(target, level, internalFormat, format, kind, width, height int) {
c.ctx.TexImage2D(gl.Enum(target), level, gl.Enum(internalFormat), width, height, gl.Enum(format), gl.Enum(kind), nil)
c.ctx.TexImage2D(gl.Enum(target), level, internalFormat, width, height, gl.Enum(format), gl.Enum(kind), nil)
}

// Sets texture parameters for the current texture unit.
Expand Down Expand Up @@ -1306,7 +1306,7 @@ func (c *Context) Viewport(x, y, width, height int) {

func (c *Context) GetViewport() [4]int32 {
var params [4]int32
c.ctx.GetIntegerv(params[:], c.VIEWPORT)
c.ctx.GetIntegerv(params[:], gl.Enum(c.VIEWPORT))
return params
}

Expand Down

0 comments on commit 19ac4a3

Please sign in to comment.