Fixed bug where incorrect path was stored as source for CreateTexturePath in the Allegro renderer.
This commit is contained in:
parent
a2cb2d03ca
commit
9371a8738e
@ -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) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
bmp, err := allg5.LoadBitmap(path)
|
bmp, err := allg5.LoadBitmap(resourcePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user