summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-30 16:29:41 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-30 16:29:41 +0000
commit84c5d0a789d40f625932e4006cdde19eca2f5558 (patch)
tree9824bb594f22292cebac10cf1d2f2420771697bb
parentdd7074736fa90f652a22da25b064bb20247b8513 (diff)
comments regarding assertions
-rw-r--r--src/mesa/main/framebuffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 55e9bbc79d..a6607387fe 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -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: