From: Brian Paul Date: Mon, 4 Jan 2010 20:59:43 +0000 (-0700) Subject: mesa: added GL_DU8DV8_ATI in extract_float_rgba() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82421c549f782cee0d377a064852813117ff6850;p=mesa.git mesa: added GL_DU8DV8_ATI in extract_float_rgba() Fixes warning seen with Shadowgrounds. See bug 24016. --- diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 139e56a96be..3b685cb9471 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -3228,6 +3228,7 @@ extract_float_rgba(GLuint n, GLfloat rgba[][4], srcFormat == GL_RGBA || srcFormat == GL_BGRA || srcFormat == GL_ABGR_EXT || + srcFormat == GL_DU8DV8_ATI || srcFormat == GL_DUDV_ATI); ASSERT(srcType == GL_UNSIGNED_BYTE || @@ -3343,6 +3344,7 @@ extract_float_rgba(GLuint n, GLfloat rgba[][4], aComp = 0; stride = 4; break; + case GL_DU8DV8_ATI: case GL_DUDV_ATI: redIndex = 0; greenIndex = 1;