fix this waring

libutil/mipmap.c: In function `gluBuild3DMipmaps':
libutil/mipmap.c:7382: warning: 'proxyTarget' might be used uninitialized in this function
by initialized the value when it declare


svn path=/trunk/; revision=14841
This commit is contained in:
Magnus Olsen 2005-04-28 13:19:23 +00:00
parent fadd959c12
commit dada212f2a

View file

@ -7012,7 +7012,7 @@ static void emptyImage3D(const PixelStorageModes *psm,
int groupSize;
int rowSize;
int padding;
GLubyte *start, *rowStart, *iter;
GLubyte *start, *rowStart, *iter=NULL;
int elementsPerLine;
const GLushort *iter2;
int ii, jj, dd, k;
@ -7367,7 +7367,7 @@ static void closestFit3D(GLenum target, GLint width, GLint height, GLint depth,
GLint widthPowerOf2= nearestPower(width);
GLint heightPowerOf2= nearestPower(height);
GLint depthPowerOf2= nearestPower(depth);
GLint proxyWidth;
GLint proxyWidth ;
do {
/* compute level 1 width & height & depth, clamping each at 1 */
@ -7380,7 +7380,7 @@ static void closestFit3D(GLenum target, GLint width, GLint height, GLint depth,
GLint depthAtLevelOne= (depthPowerOf2 > 1) ?
depthPowerOf2 >> 1 :
depthPowerOf2;
GLenum proxyTarget;
GLenum proxyTarget = 0;
assert(widthAtLevelOne > 0);
assert(heightAtLevelOne > 0);
assert(depthAtLevelOne > 0);