Skip to content

Commit

Permalink
BLUGA-GRAPHICS: Fix mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 4, 2023
1 parent a77f337 commit 734753a
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -6,9 +6,9 @@ namespace Raylib {

::Texture2D &TextureManagerImpl::getTexture(const std::string &path)
{
std::lock_guard<std::mutex> lock(_mutex);
preloadTexture(path);
auto fileName = PathResolver::resolve(path);
std::lock_guard<std::mutex> lock(_mutex);

return _textures[fileName];
}
Expand Down

0 comments on commit 734753a

Please sign in to comment.