diff options
author | Brian Paul <[email protected]> | 2006-03-24 22:53:00 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-03-24 22:53:00 +0000 |
commit | 590cd26006959ba390d5ebe337cb363827087941 (patch) | |
tree | ff949a067e8a118a56d9a3ff23a179a5728fe878 /src/mesa/main/framebuffer.c | |
parent | ed4ab13cefce0eb403180b497a6552f1040984a2 (diff) |
added some missing formats in _mesa_source/dest_buffer_exists()
Diffstat (limited to 'src/mesa/main/framebuffer.c')
-rw-r--r-- | src/mesa/main/framebuffer.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 26e72da3f7c..0b543df9a5c 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -571,12 +571,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; @@ -606,7 +612,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; } @@ -631,12 +638,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; @@ -664,7 +677,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; } |