Fixed bug where incorrect path was stored as source for CreateTexturePath in the Allegro renderer.

This commit is contained in:
Sander Schobers 2020-05-22 09:08:50 +02:00
parent a2cb2d03ca
commit 9371a8738e

View File

@ -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
}