diff options
author | Brian Paul <[email protected]> | 2004-05-04 23:56:24 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-05-04 23:56:24 +0000 |
commit | 2b012578ee519561365640e23272b71898378c45 (patch) | |
tree | b1cce0f91fa0be332c02b61bc4676e477764c20d /src/mesa/main | |
parent | 71f88aeb10d67766d7b69e59e2cd94ba2c55ef1d (diff) |
fix a bug on the convolution path
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texstore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 73126ef9492..bcc6f1dd539 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -238,6 +238,8 @@ make_temp_float_image(GLcontext *ctx, GLuint dims, /* do post-convolution transfer and pack into tempImage */ { + const GLint logComponents + = _mesa_components_in_format(logicalBaseFormat); const GLfloat *src = convImage; GLfloat *dst = tempImage + img * (convWidth * convHeight * 4); for (row = 0; row < convHeight; row++) { @@ -247,7 +249,7 @@ make_temp_float_image(GLcontext *ctx, GLuint dims, dst, &ctx->DefaultPacking, postConvTransferOps); src += convWidth * 4; - dst += convWidth * 4; + dst += convWidth * logComponents; } } } /* loop over 3D image slices */ |