From: Marek Olšák Date: Tue, 22 Jun 2010 23:39:26 +0000 (+0200) Subject: mesa: fix assertion failure for GL_ALPHA FBOs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbd33e7d3a940e4e7a7bc435f2256714115f3040;p=mesa.git mesa: fix assertion failure for GL_ALPHA FBOs --- 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: