mesa: fix assertion failure for GL_ALPHA FBOs
authorMarek Olšák <maraeo@gmail.com>
Tue, 22 Jun 2010 23:39:26 +0000 (01:39 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 22 Jun 2010 23:39:26 +0000 (01:39 +0200)
src/mesa/main/framebuffer.c

index 01f8418..56558cf 100644 (file)
@@ -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: