summaryrefslogtreecommitdiff
path: root/gfx/models
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/models')
-rw-r--r--gfx/models/texture.cpp2
-rw-r--r--gfx/models/texture.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gfx/models/texture.cpp b/gfx/models/texture.cpp
index 612f0a0..79376bc 100644
--- a/gfx/models/texture.cpp
+++ b/gfx/models/texture.cpp
@@ -6,7 +6,7 @@
#include <resource.h>
#include <stb/stb_image.h>
-Cache<Texture> Texture::cachedTexture;
+Cache<Texture, std::filesystem::path> Texture::cachedTexture;
Texture::Texture(const std::filesystem::path & fileName)
{
diff --git a/gfx/models/texture.h b/gfx/models/texture.h
index 35c8c8b..e029a9b 100644
--- a/gfx/models/texture.h
+++ b/gfx/models/texture.h
@@ -11,7 +11,7 @@ class Texture {
public:
explicit Texture(const std::filesystem::path & fileName);
- static Cache<Texture> cachedTexture;
+ static Cache<Texture, std::filesystem::path> cachedTexture;
void Bind() const;