comments regarding assertions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 55e9bbc..a660738 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -661,6 +661,10 @@
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 @@
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: