From: Eric Anholt Date: Wed, 13 Apr 2011 17:50:56 +0000 (-0700) Subject: mesa: Fix _mesa_unpack_dudv_span_byte assertion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14eedf3028422e98ac05713a3e3c37e6c9b4cf37;p=mesa.git mesa: Fix _mesa_unpack_dudv_span_byte assertion. 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 --- diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 02154585aca..4bb0a90045e 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -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 ||