diff --git a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp index 7b74c66..d3da10f 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp +++ b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp @@ -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 lock(_mutex); if (_textures.find(path) == _textures.end()) { diff --git a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp index 81f5d89..ac141d7 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp +++ b/libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp @@ -56,7 +56,7 @@ namespace Raylib { private: std::map _textures; std::mutex _mutex; - ::Texture2D loadTexture(const std::string &path); + ::Texture2D &loadTexture(const std::string &path); }; class SpriteImpl : public Sprite {