diff options
Diffstat (limited to 'game')
-rw-r--r-- | game/physical.cpp | 3 | ||||
-rw-r--r-- | game/physical.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/game/physical.cpp b/game/physical.cpp index 17d85dd..ec3221f 100644 --- a/game/physical.cpp +++ b/game/physical.cpp @@ -6,10 +6,9 @@ #include <gfx/gl/transform.h> Cache<Mesh> Physical::cachedMesh; -Cache<Texture> Physical::cachedTexture; Physical::Physical(glm::vec3 where, const std::string & m, const std::string & t) : - location {where}, mesh {cachedMesh.get(m)}, texture {cachedTexture.get(t)} + location {where}, mesh {cachedMesh.get(m)}, texture {Texture::cachedTexture.get(t)} { } diff --git a/game/physical.h b/game/physical.h index 44af5e6..4ad8a49 100644 --- a/game/physical.h +++ b/game/physical.h @@ -32,7 +32,6 @@ protected: private: static Cache<Mesh> cachedMesh; - static Cache<Texture> cachedTexture; }; #endif |