Mesa (mesa_7_7_branch): mesa: Fix copy'n' paste problem in al1616 texel fetch.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Dec 3 00:21:16 UTC 2009
Module: Mesa
Branch: mesa_7_7_branch
Commit: b47f7316dab5eb81bc7e60dc93bb5dbe824c43d4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b47f7316dab5eb81bc7e60dc93bb5dbe824c43d4
Author: Eric Anholt <eric at anholt.net>
Date: Wed Dec 2 12:15:46 2009 -0800
mesa: Fix copy'n'paste problem in al1616 texel fetch.
---
src/mesa/main/texfetch_tmp.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/texfetch_tmp.h b/src/mesa/main/texfetch_tmp.h
index 1f0d436..e6772c8 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 );
More information about the mesa-commit
mailing list