Mesa (master): rgtc: fix void pointer arith.

Dave Airlie airlied at kemper.freedesktop.org
Mon Feb 28 20:54:00 UTC 2011


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue Mar  1 06:47:00 2011 +1000

rgtc: fix void pointer arith.

should fix scons build.

---

 src/mesa/main/texcompress_rgtc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/texcompress_rgtc.c b/src/mesa/main/texcompress_rgtc.c
index b7725f4..1a01755 100644
--- a/src/mesa/main/texcompress_rgtc.c
+++ b/src/mesa/main/texcompress_rgtc.c
@@ -88,7 +88,7 @@ _mesa_texstore_red_rgtc1(TEXSTORE_PARAMS)
    const GLchan *tempImage = NULL;
    int i, j;
    int numxpixels, numypixels;
-   const void *srcaddr;
+   const GLchan *srcaddr;
    GLubyte srcpixels[4][4];
    GLubyte *blkaddr;
    GLint dstRowDiff;
@@ -197,7 +197,7 @@ _mesa_texstore_rg_rgtc2(TEXSTORE_PARAMS)
    const GLchan *tempImage = NULL;
    int i, j;
    int numxpixels, numypixels;
-   const void *srcaddr;
+   const GLchan *srcaddr;
    GLubyte srcpixels[4][4];
    GLubyte *blkaddr;
    GLint dstRowDiff;




More information about the mesa-commit mailing list