diff options
author | Marek Olšák <[email protected]> | 2010-06-23 01:39:26 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-06-23 01:39:26 +0200 |
commit | cbd33e7d3a940e4e7a7bc435f2256714115f3040 (patch) | |
tree | 7161f97fcbc77e3997ed3812adaa2926331b1efe /src/mesa/main | |
parent | 9ed732584816168f63ecd37ab8a26a5ee495b628 (diff) |
mesa: fix assertion failure for GL_ALPHA FBOs
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/framebuffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 01f84180af7..56558cfcc1e 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -879,6 +879,7 @@ _mesa_source_buffer_exists(GLcontext *ctx, GLenum format) return GL_FALSE; } ASSERT(_mesa_get_format_bits(ctx->ReadBuffer->_ColorReadBuffer->Format, GL_RED_BITS) > 0 || + _mesa_get_format_bits(ctx->ReadBuffer->_ColorReadBuffer->Format, GL_ALPHA_BITS) > 0 || _mesa_get_format_bits(ctx->ReadBuffer->_ColorReadBuffer->Format, GL_INDEX_BITS) > 0); break; case GL_DEPTH: |