updated xmobile implementation for new version, also added to tests
This commit is contained in:
parent
c30fb5f4d3
commit
e887b6ad3e
2 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
|
||||
"github.com/go-gl/gl/v3.2-core/gl"
|
||||
"github.com/tfriedel6/canvas"
|
||||
_ "github.com/tfriedel6/canvas/glimpl/xmobile"
|
||||
"github.com/tfriedel6/canvas/sdlcanvas"
|
||||
)
|
||||
|
||||
|
|
|
@ -257,7 +257,7 @@ func (gli GLImpl) TexImage2D(target uint32, level int32, internalformat int32, w
|
|||
sh.Cap = int(width * height * 4)
|
||||
sh.Len = int(width * height * 4)
|
||||
sh.Data = uintptr(pixels)
|
||||
gli.gl.TexImage2D(gl.Enum(target), int(level), int(width), int(height), gl.Enum(format), gl.Enum(xtype), buf)
|
||||
gli.gl.TexImage2D(gl.Enum(target), int(level), int(internalformat), int(width), int(height), gl.Enum(format), gl.Enum(xtype), buf)
|
||||
}
|
||||
func (gli GLImpl) TexParameteri(target uint32, pname uint32, param int32) {
|
||||
gli.gl.TexParameteri(gl.Enum(target), gl.Enum(pname), int(param))
|
||||
|
|
Loading…
Reference in a new issue