diff options
Diffstat (limited to 'gfx/models')
-rw-r--r-- | gfx/models/texture.cpp | 2 | ||||
-rw-r--r-- | gfx/models/texture.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gfx/models/texture.cpp b/gfx/models/texture.cpp index e311937..60e4045 100644 --- a/gfx/models/texture.cpp +++ b/gfx/models/texture.cpp @@ -18,7 +18,7 @@ Texture::Texture(const Image & tex) : {
}
-Texture::Texture(GLsizei width, GLsizei height, void * data)
+Texture::Texture(GLsizei width, GLsizei height, const void * data)
{
glBindTexture(GL_TEXTURE_2D, m_texture);
diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 7948a58..c3deb7b 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);
explicit Texture(const Image & image);
- explicit Texture(GLsizei width, GLsizei height, void * data);
+ explicit Texture(GLsizei width, GLsizei height, const void * data);
static Cache<Texture, std::filesystem::path> cachedTexture;
|