mesa: Fix copy'n'paste problem in al1616 texel fetch.

This commit is contained in:
Eric Anholt 2009-12-02 12:15:46 -08:00
parent 77ff3a5619
commit b47f7316da

View 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, static void FETCH(f_al1616)( const struct gl_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel ) 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[RCOMP] =
texel[GCOMP] = texel[GCOMP] =
texel[BCOMP] = USHORT_TO_FLOAT( s & 0xffff ); texel[BCOMP] = USHORT_TO_FLOAT( s & 0xffff );