mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
swrast: Don't assert against glReadPixels of GL_RED and GL_RG.
Everything appears to already be in place for this. Fixes aborts in: ARB_texture_rg/fbo-alphatest-formats-float ARB_texture_rg/fbo-blending-formats-float. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
cd3568c329
commit
641dd899bd
2 changed files with 8 additions and 2 deletions
|
|
@ -191,7 +191,10 @@ fast_read_rgba_pixels( struct gl_context *ctx,
|
|||
if (!rb)
|
||||
return GL_FALSE;
|
||||
|
||||
ASSERT(rb->_BaseFormat == GL_RGBA || rb->_BaseFormat == GL_RGB ||
|
||||
ASSERT(rb->_BaseFormat == GL_RGBA ||
|
||||
rb->_BaseFormat == GL_RGB ||
|
||||
rb->_BaseFormat == GL_RG ||
|
||||
rb->_BaseFormat == GL_RED ||
|
||||
rb->_BaseFormat == GL_ALPHA);
|
||||
|
||||
/* clipping should have already been done */
|
||||
|
|
|
|||
|
|
@ -1348,7 +1348,10 @@ _swrast_read_rgba_span( struct gl_context *ctx, struct gl_renderbuffer *rb,
|
|||
|
||||
ASSERT(rb);
|
||||
ASSERT(rb->GetRow);
|
||||
ASSERT(rb->_BaseFormat == GL_RGB || rb->_BaseFormat == GL_RGBA ||
|
||||
ASSERT(rb->_BaseFormat == GL_RGBA ||
|
||||
rb->_BaseFormat == GL_RGB ||
|
||||
rb->_BaseFormat == GL_RG ||
|
||||
rb->_BaseFormat == GL_RED ||
|
||||
rb->_BaseFormat == GL_ALPHA);
|
||||
|
||||
if (rb->DataType == dstType) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue