fix a couple bad casts

This commit is contained in:
Brian Paul 2004-08-25 14:52:01 +00:00
parent be9b759ab0
commit 7c544d3685
1 changed files with 2 additions and 2 deletions

View 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