Skip to content

Commit

Permalink
BLUGA-GRAPHICS: Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 4, 2023
1 parent 23dc7a3 commit 15db902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Raylib {
return loadTexture(path);
}

::Texture2D TextureManagerImpl::loadTexture(const std::string &path)
::Texture2D &TextureManagerImpl::loadTexture(const std::string &path)
{
std::lock_guard<std::mutex> lock(_mutex);
if (_textures.find(path) == _textures.end()) {
Expand Down
2 changes: 1 addition & 1 deletion libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace Raylib {
private:
std::map<std::string, ::Texture2D> _textures;
std::mutex _mutex;
::Texture2D loadTexture(const std::string &path);
::Texture2D &loadTexture(const std::string &path);
};

class SpriteImpl : public Sprite {
Expand Down

0 comments on commit 15db902

Please sign in to comment.