summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-24 22:51:49 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-24 22:51:49 +0000
commit86042f53f2811c990a1144d96037329751d379ae (patch)
tree2d76d8ec128c9f582279c89d5840d2581bbdbb6b
parent068062f997c1fe17ca23464ed49594fddcad8baa (diff)
added some missing formats in _mesa_source/dest_buffer_exists()
-rw-r--r--src/mesa/main/framebuffer.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 79675ff32d..d111b8eb03 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -643,12 +643,18 @@ _mesa_source_buffer_exists(GLcontext *ctx, GLenum format)
switch (format) {
case GL_COLOR:
+ case GL_RED:
+ case GL_GREEN:
+ case GL_BLUE:
case GL_ALPHA:
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
case GL_INTENSITY:
case GL_RGB:
+ case GL_BGR:
case GL_RGBA:
+ case GL_BGRA:
+ case GL_ABGR_EXT:
case GL_COLOR_INDEX:
if (ctx->ReadBuffer->_ColorReadBuffer == NULL) {
return GL_FALSE;
@@ -678,7 +684,8 @@ _mesa_source_buffer_exists(GLcontext *ctx, GLenum format)
break;
default:
_mesa_problem(ctx,
- "Unexpected format 0x%x in _mesa_source_buffer_exists");
+ "Unexpected format 0x%x in _mesa_source_buffer_exists",
+ format);
return GL_FALSE;
}
@@ -703,12 +710,18 @@ _mesa_dest_buffer_exists(GLcontext *ctx, GLenum format)
switch (format) {
case GL_COLOR:
+ case GL_RED:
+ case GL_GREEN:
+ case GL_BLUE:
case GL_ALPHA:
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
case GL_INTENSITY:
case GL_RGB:
+ case GL_BGR:
case GL_RGBA:
+ case GL_BGRA:
+ case GL_ABGR_EXT:
case GL_COLOR_INDEX:
/* nothing special */
break;
@@ -736,7 +749,8 @@ _mesa_dest_buffer_exists(GLcontext *ctx, GLenum format)
break;
default:
_mesa_problem(ctx,
- "Unexpected format 0x%x in _mesa_source_buffer_exists");
+ "Unexpected format 0x%x in _mesa_source_buffer_exists",
+ format);
return GL_FALSE;
}