mesa: Fix copy'n'paste problem in al1616 texel fetch.
authorEric Anholt <eric@anholt.net>
Wed, 2 Dec 2009 20:15:46 +0000 (12:15 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 3 Dec 2009 00:19:36 +0000 (16:19 -0800)
src/mesa/main/texfetch_tmp.h

index 1f0d43623616e568e7e5d422f925bf04e7508f45..e6772c89f36ae17f5dfbc036d9da1a0d9b1d7aa2 100644 (file)
@@ -864,7 +864,7 @@ static void store_texel_al88_rev(struct gl_texture_image *texImage,
 static void FETCH(f_al1616)( const struct gl_texture_image *texImage,
                             GLint i, GLint j, GLint k, GLfloat *texel )
 {
-   const GLuint s = *TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
+   const GLuint s = *TEXEL_ADDR(GLuint, texImage, i, j, k, 1);
    texel[RCOMP] =
    texel[GCOMP] =
    texel[BCOMP] = USHORT_TO_FLOAT( s & 0xffff );