Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/OpenGL/OpenGLTextureArray.cpp @ 2062:f5db73779f2d deep-learning
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 May 2023 16:48:59 +0200 |
parents | 86e0e92a2e0d |
children | b6b5e1ca1cc2 |
comparison
equal
deleted
inserted
replaced
2061:6ea5f40ea0e9 | 2062:f5db73779f2d |
---|---|
254 } | 254 } |
255 | 255 |
256 #else | 256 #else |
257 glBindTexture(GL_TEXTURE_2D_ARRAY, texture.texture_); | 257 glBindTexture(GL_TEXTURE_2D_ARRAY, texture.texture_); |
258 | 258 |
259 switch (format) | 259 switch (format_) |
260 { | 260 { |
261 case Orthanc::PixelFormat_Grayscale8: | 261 case Orthanc::PixelFormat_Grayscale8: |
262 glGetTexImage(GL_TEXTURE_2D_ARRAY, 0 /* base level */, GL_RED, GL_UNSIGNED_BYTE, &buffer_[0]); | 262 glGetTexImage(GL_TEXTURE_2D_ARRAY, 0 /* base level */, GL_RED, GL_UNSIGNED_BYTE, &buffer_[0]); |
263 break; | 263 break; |
264 | 264 |