From: Eric Anholt Date: Wed, 2 Dec 2009 20:15:46 +0000 (-0800) Subject: mesa: Fix copy'n'paste problem in al1616 texel fetch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b47f7316dab5eb81bc7e60dc93bb5dbe824c43d4;p=mesa.git mesa: Fix copy'n'paste problem in al1616 texel fetch. --- diff --git a/src/mesa/main/texfetch_tmp.h b/src/mesa/main/texfetch_tmp.h index 1f0d4362361..e6772c89f36 100644 --- a/src/mesa/main/texfetch_tmp.h +++ b/src/mesa/main/texfetch_tmp.h @@ -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 );