diff OrthancStone/Sources/OpenGL/OpenGLFramebuffer.cpp @ 2064:4e31d76c7ecd deep-learning

making ImageProcessingProgram compatible with 3D volumes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 May 2023 11:06:19 +0200
parents 86e0e92a2e0d
children cf3d85eb291c
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLFramebuffer.cpp	Wed May 03 22:00:38 2023 +0200
+++ b/OrthancStone/Sources/OpenGL/OpenGLFramebuffer.cpp	Thu May 04 11:06:19 2023 +0200
@@ -191,6 +191,8 @@
     void OpenGLFramebuffer::SetTarget(OpenGLTexture& target)
     {
       glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, target.GetId(), 0);
+      ORTHANC_OPENGL_CHECK("glFramebufferTexture2D()");
+
       SetupTextureTarget();
       glViewport(0, 0, target.GetWidth(), target.GetHeight());
     }
@@ -206,6 +208,8 @@
       else
       {
         glFramebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target.GetId(), 0, layer);
+        ORTHANC_OPENGL_CHECK("glFramebufferTextureLayer()");
+
         SetupTextureTarget();
         glViewport(0, 0, target.GetWidth(), target.GetHeight());
       }