projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71f88ae
)
fix a bug on the convolution path
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 4 May 2004 23:56:24 +0000
(23:56 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 4 May 2004 23:56:24 +0000
(23:56 +0000)
src/mesa/main/texstore.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index 73126ef9492838c6a95a21f7f7add21ba818f1a0..bcc6f1dd5394dcb1427633ac7e252cc17eb1c039 100644
(file)
--- 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 */