From 7bb6e1abeba61556859bd8ddc98621e2a140c560 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 14 Oct 2022 18:09:37 +0100 Subject: Fix const correctness of Texture from raw data --- gfx/models/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/models/texture.cpp') 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); -- cgit v1.2.3