Skip to content

Commit

Permalink
mac app updated to latest golang/mobile which redefined TexImage2D me…
Browse files Browse the repository at this point in the history
…thod
  • Loading branch information
rcoreilly committed Sep 20, 2018
1 parent 343221d commit 39399c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions giv/filetree.go
Expand Up @@ -42,6 +42,7 @@ var FileTreeProps = ki.Props{}
// already stored about files. Only paths listed in OpenDirs will be opened.
func (ft *FileTree) OpenPath(path string) {
ft.FRoot = ft // we are our own root..
ft.Kind = "Folder"
ft.OpenDirs.ClearFlags()
ft.ReadDir(path)
}
Expand Down
2 changes: 1 addition & 1 deletion oswin/driver/macdriver/app.go
Expand Up @@ -110,7 +110,7 @@ func (app *appImpl) NewTexture(win oswin.Window, size image.Point) (oswin.Textur
}

glctx.BindTexture(gl.TEXTURE_2D, t.id)
glctx.TexImage2D(gl.TEXTURE_2D, 0, size.X, size.Y, gl.RGBA, gl.UNSIGNED_BYTE, nil)
glctx.TexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, size.X, size.Y, gl.RGBA, gl.UNSIGNED_BYTE, nil)
glctx.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR)
glctx.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR)
glctx.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)
Expand Down

0 comments on commit 39399c7

Please sign in to comment.