Skip to content

Commit

Permalink
update texture configgoimage to new api
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall C. O'Reilly committed Jun 1, 2022
1 parent 22f839b commit a7e7eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/texture/texture.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func main() {
pnm := filepath.Join("../images", fnm)
imgs[i] = OpenImage(pnm)
img, _ := tximgv.Vals.ValByIdxTry(i)
img.Texture.ConfigGoImage(imgs[i])
img.Texture.ConfigGoImage(imgs[i].Bounds().Size(), 0)
// img.Texture.Sampler.Border = vgpu.BorderBlack
// img.Texture.Sampler.UMode = vgpu.ClampToBorder
// img.Texture.Sampler.VMode = vgpu.ClampToBorder
Expand Down

0 comments on commit a7e7eb8

Please sign in to comment.