From 9371a8738e694949a3d0c9e867eeed47f53e13d5 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Fri, 22 May 2020 09:08:50 +0200 Subject: [PATCH] Fixed bug where incorrect path was stored as source for CreateTexturePath in the Allegro renderer. --- allg5ui/renderer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }