Mesa (master): swrast: s/GLubyte/GLchan/ in a cast

Brian Paul brianp at kemper.freedesktop.org
Wed Sep 21 03:31:01 UTC 2011


Module: Mesa
Branch: master
Commit: bdddf1cc26541d730bac309bd63dfdcaf4aea513
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdddf1cc26541d730bac309bd63dfdcaf4aea513

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Sep 20 21:06:19 2011 -0600

swrast: s/GLubyte/GLchan/ in a cast

---

 src/mesa/swrast/s_texfetch_tmp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/swrast/s_texfetch_tmp.h b/src/mesa/swrast/s_texfetch_tmp.h
index 3eebd13..c63b204 100644
--- a/src/mesa/swrast/s_texfetch_tmp.h
+++ b/src/mesa/swrast/s_texfetch_tmp.h
@@ -976,7 +976,7 @@ static void FETCH(f_rg88)( const struct swrast_texture_image *texImage,
 static void store_texel_rg88(struct swrast_texture_image *texImage,
                              GLint i, GLint j, GLint k, const void *texel)
 {
-   const GLchan *rgba = (const GLubyte *) texel;
+   const GLchan *rgba = (const GLchan *) texel;
    GLushort *dst = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
    GLubyte r = CHAN_TO_UBYTE(rgba[RCOMP]);
    GLubyte g = CHAN_TO_UBYTE(rgba[GCOMP]);




More information about the mesa-commit mailing list