Mesa (master): mesa: fix assertion failure for GL_ALPHA FBOs
Marek Olšák
mareko at kemper.freedesktop.org
Tue Jun 22 23:40:31 UTC 2010
Module: Mesa
Branch: master
Commit: cbd33e7d3a940e4e7a7bc435f2256714115f3040
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbd33e7d3a940e4e7a7bc435f2256714115f3040
Author: Marek Olšák <maraeo at gmail.com>
Date: Wed Jun 23 01:39:26 2010 +0200
mesa: fix assertion failure for GL_ALPHA FBOs
---
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 01f8418..56558cf 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:
More information about the mesa-commit
mailing list