Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/OpenGL/OpenGLTexture.cpp @ 2039:e0906b7c67b9 deep-learning
const
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 28 Jan 2023 15:48:01 +0100 |
parents | d81a7157a846 |
children | 0fa4c0ca429d |
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp Sat Jan 28 13:03:14 2023 +0100 +++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp Sat Jan 28 15:48:01 2023 +0100 @@ -148,7 +148,7 @@ } - void OpenGLTexture::Bind(GLint location) + void OpenGLTexture::Bind(GLint location) const { glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, texture_); @@ -156,7 +156,7 @@ } - Orthanc::ImageAccessor* OpenGLTexture::Download(Orthanc::PixelFormat format) + Orthanc::ImageAccessor* OpenGLTexture::Download(Orthanc::PixelFormat format) const { if (context_.IsContextLost()) {