fix a couple bad casts
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 25 Aug 2004 14:52:01 +0000 (14:52 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 25 Aug 2004 14:52:01 +0000 (14:52 +0000)
src/mesa/main/texstore.c

index 56a72507f96e5413f790082b6b009693fc928813..c6c7cb488adf44b5f99b9c5aeddfba400b8b22b3 100644 (file)
@@ -1103,7 +1103,7 @@ _mesa_texstore_rgb888(STORE_PARAMS)
                                                  srcWidth, srcHeight, srcDepth,
                                                  srcFormat, srcType, srcAddr,
                                                  srcPacking);
-      const GLchan *src = (const GLubyte *) tempImage;
+      const GLchan *src = (const GLchan *) tempImage;
       GLubyte *dstImage = (GLubyte *) dstAddr
                         + dstZoffset * dstImageStride
                         + dstYoffset * dstRowStride
@@ -1207,7 +1207,7 @@ _mesa_texstore_bgr888(STORE_PARAMS)
                                                  srcWidth, srcHeight, srcDepth,
                                                  srcFormat, srcType, srcAddr,
                                                  srcPacking);
-      const GLchan *src = (const GLubyte *) tempImage;
+      const GLchan *src = (const GLchan *) tempImage;
       GLubyte *dstImage = (GLubyte *) dstAddr
                         + dstZoffset * dstImageStride
                         + dstYoffset * dstRowStride