mesa: Fix _mesa_unpack_dudv_span_byte assertion.
authorEric Anholt <eric@anholt.net>
Wed, 13 Apr 2011 17:50:56 +0000 (10:50 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 17 Apr 2011 17:26:09 +0000 (10:26 -0700)
It was accepting only GL_DUDV_ATI and not the specific sized format
GL_DU8DV8_ATI.  Fixes assertion failure at startup in Shadowgrounds.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/pack.c

index 02154585acae452ea95f2a495e15e294b0573a5b..4bb0a90045eaa8b6093d80ea3a78e66c8ec310da 100644 (file)
@@ -3973,7 +3973,8 @@ _mesa_unpack_dudv_span_byte( struct gl_context *ctx,
                              GLbitfield transferOps )
 {
    ASSERT(dstFormat == GL_DUDV_ATI);
-   ASSERT(srcFormat == GL_DUDV_ATI);
+   ASSERT(srcFormat == GL_DUDV_ATI ||
+         srcFormat == GL_DU8DV8_ATI);
 
    ASSERT(srcType == GL_UNSIGNED_BYTE ||
           srcType == GL_BYTE ||