summaryrefslogtreecommitdiff
path: root/gfx/models/texture.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-14 18:09:37 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-14 18:09:37 +0100
commit7bb6e1abeba61556859bd8ddc98621e2a140c560 (patch)
tree50a6a83b1c2912357955d8ef329b3fd5b7306ea4 /gfx/models/texture.h
parentAllow creating a texture directly from an dimensions and pixel data (diff)
downloadilt-7bb6e1abeba61556859bd8ddc98621e2a140c560.tar.bz2
ilt-7bb6e1abeba61556859bd8ddc98621e2a140c560.tar.xz
ilt-7bb6e1abeba61556859bd8ddc98621e2a140c560.zip
Fix const correctness of Texture from raw data
Diffstat (limited to 'gfx/models/texture.h')
-rw-r--r--gfx/models/texture.h2
1 files changed, 1 insertions, 1 deletions
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;