diff --git a/examples/texture/texture.go b/examples/texture/texture.go index cdf9676..c701b16 100644 --- a/examples/texture/texture.go +++ b/examples/texture/texture.go @@ -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