diff OrthancStone/Sources/OpenGL/OpenGLTexture.cpp @ 1564:e731e62692a9

upgrading Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 15:18:21 +0200
parents 244ad1e4e76a
children 4fb8fdf03314
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp	Fri Aug 21 21:57:54 2020 +0200
+++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp	Thu Sep 17 15:18:21 2020 +0200
@@ -126,7 +126,7 @@
 
         // Load the texture from the image buffer
         glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, image.GetWidth(), image.GetHeight(),
-          0, sourceFormat, GL_UNSIGNED_BYTE, image.GetBuffer());
+                     0, sourceFormat, GL_UNSIGNED_BYTE, image.GetConstBuffer());
         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, interpolation);
         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, interpolation);
         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);