From 8283292a78a8b01722e0fb33ac1b83c64d63cd69 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 18 Sep 2009 15:20:52 -0700 Subject: [PATCH] Call _mesa_unpack_dudv_span_byte with the base internal format It seems that the _mesa_unpack_* functions expect to be passed base formats (e.g., GL_RGBA instead of GL_RGBA8) for both the source and destination format. However, _mesa_texstore_dudv8 passed the source format directly from the application. This means that GL_DU8DV8_ATI could slip through. --- src/mesa/main/texstore.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index ab9973b..abe5b92 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -2543,7 +2543,7 @@ _mesa_texstore_dudv8(TEXSTORE_PARAMS) dst = tempImage; for (row = 0; row < srcHeight; row++) { _mesa_unpack_dudv_span_byte(ctx, srcWidth, baseInternalFormat, - dst, srcFormat, srcType, src, + dst, GL_DUDV_ATI, srcType, src, srcPacking, 0); dst += srcWidth * components; src += srcStride; -- 1.6.3.3