summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-08-25 14:52:01 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-08-25 14:52:01 +0000
commit7c544d36850c6e3627adbbd66df9b12bbe0f185b (patch)
treecf864849593096c85e53ad32b3026294e6e20600
parentbe9b759ab05b6d3f837716daec3ec32b4ffe7a9b (diff)
fix a couple bad casts
-rw-r--r--src/mesa/main/texstore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 56a72507f9..c6c7cb488a 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -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