summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-09-01 22:01:12 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-09-01 22:01:12 +0000
commitbfc6ee1b1371605af434cc411b6e0cc9e987f95b (patch)
tree4e1d8b0c4360b0bda4d55ad1c9c4f65004deb0bd /src
parente8a84a93aab544f1e47398c43facd0ed1378faa3 (diff)
destBytesPerRow was uninitialized in make_texture_image()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/teximage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index b985ee4b1a..2fb8e8b404 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1,4 +1,4 @@
-/* $Id: teximage.c,v 1.43 2000/08/31 15:24:39 brianp Exp $ */
+/* $Id: teximage.c,v 1.44 2000/09/01 22:01:12 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -887,6 +887,7 @@ make_texture_image( GLcontext *ctx, GLuint dimensions,
}
else {
/* no convolution */
+ destBytesPerRow = width * components * sizeof(GLubyte);
for (img = 0; img < depth; img++) {
for (row = 0; row < height; row++) {
const GLvoid *srcAddr = _mesa_image_address(srcPacking,