mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
destBytesPerRow was uninitialized in make_texture_image()
This commit is contained in:
parent
e8a84a93aa
commit
bfc6ee1b13
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue