mesa: fix assertion failure for GL_ALPHA FBOs
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user