diff --git a/allg5ui/renderer.go b/allg5ui/renderer.go index bd1b8de..ed53cb8 100644 --- a/allg5ui/renderer.go +++ b/allg5ui/renderer.go @@ -204,11 +204,11 @@ func (r *Renderer) CreateTextureGo(im image.Image, source bool) (ui.Texture, err } func (r *Renderer) CreateTexturePath(path string, source bool) (ui.Texture, error) { - path, err := r.res.FetchResource(path) + resourcePath, err := r.res.FetchResource(path) if err != nil { return nil, err } - bmp, err := allg5.LoadBitmap(path) + bmp, err := allg5.LoadBitmap(resourcePath) if err != nil { return nil, err }