diff options
author | Brian Paul <[email protected]> | 2001-04-04 22:41:23 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-04-04 22:41:23 +0000 |
commit | 36f3712e85cafef1b038189678030f6ef4f8b7e9 (patch) | |
tree | 0fea8edefe707fadda4974c0687c4402556bd80b /src/mesa | |
parent | 7d58f44f73be59bd3583e6dfeedf56c43f7fbd55 (diff) |
fixed tmpTexelSize computation bug
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texstore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 95f16b20768..ef4a75916bb 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1,4 +1,4 @@ -/* $Id: texstore.c,v 1.22 2001/04/04 21:54:21 brianp Exp $ */ +/* $Id: texstore.c,v 1.23 2001/04/04 22:41:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -453,7 +453,6 @@ _mesa_transfer_teximage(GLcontext *ctx, GLuint dimensions, makeTemp = GL_FALSE; } - if (makeTemp) { GLint postConvWidth = srcWidth, postConvHeight = srcHeight; GLenum tmpFormat; @@ -468,7 +467,7 @@ _mesa_transfer_teximage(GLcontext *ctx, GLuint dimensions, tmpFormat = _mesa_base_tex_format(ctx, dstFormat->IntFormat); tmpComps = _mesa_components_in_format(tmpFormat); - tmpTexelSize = tmpComps * sizeof(CHAN_TYPE); + tmpTexelSize = tmpComps * sizeof(GLchan); tmpRowStride = postConvWidth * tmpTexelSize; tmpImageStride = postConvWidth * postConvHeight * tmpTexelSize; tmpImage = (GLubyte *) MALLOC(postConvWidth * postConvHeight * |