comments regarding assertions
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 30 Mar 2006 16:29:41 +0000 (16:29 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 30 Mar 2006 16:29:41 +0000 (16:29 +0000)
src/mesa/main/framebuffer.c

index 55e9bbc79d681ae6a35e3a33c98b9fdb376a5adf..a6607387fee59ceba7390e607c5e6f0108f0ef4d 100644 (file)
@@ -661,6 +661,10 @@ _mesa_source_buffer_exists(GLcontext *ctx, GLenum format)
       if (ctx->ReadBuffer->_ColorReadBuffer == NULL) {
          return GL_FALSE;
       }
+      /* XXX enable this post 6.5 release:
+      ASSERT(ctx->ReadBuffer->_ColorReadBuffer->RedBits > 0 ||
+             ctx->ReadBuffer->_ColorReadBuffer->IndexBits > 0);
+      */
       break;
    case GL_DEPTH:
    case GL_DEPTH_COMPONENT:
@@ -726,6 +730,7 @@ _mesa_dest_buffer_exists(GLcontext *ctx, GLenum format)
    case GL_ABGR_EXT:
    case GL_COLOR_INDEX:
       /* nothing special */
+      /* Could assert that colorbuffer has RedBits > 0 */
       break;
    case GL_DEPTH:
    case GL_DEPTH_COMPONENT: