From Mourad Biyfarguine, "This is a fix to some 'potentially uninitialized local variable' warnings in src/osg/glu/libutil/mipmap.cpp."
This commit is contained in:
@@ -4965,7 +4965,7 @@ static void fill_image(const PixelStorageModes *psm,
|
||||
GLint group_size;
|
||||
GLint elements_per_line;
|
||||
const GLubyte *start;
|
||||
const GLubyte *iter;
|
||||
const GLubyte *iter = NULL;
|
||||
GLushort *iter2;
|
||||
GLint i, j, k;
|
||||
GLint myswap_bytes;
|
||||
@@ -5228,7 +5228,7 @@ static void empty_image(const PixelStorageModes *psm,
|
||||
GLint group_size;
|
||||
GLint elements_per_line;
|
||||
GLubyte *start;
|
||||
GLubyte *iter;
|
||||
GLubyte *iter = NULL;
|
||||
const GLushort *iter2;
|
||||
GLint i, j, k;
|
||||
GLint myswap_bytes;
|
||||
@@ -6713,7 +6713,7 @@ static void fillImage3D(const PixelStorageModes *psm,
|
||||
int elementsPerLine;
|
||||
int rowsPerImage;
|
||||
int imageSize;
|
||||
const GLubyte *start, *rowStart, *iter;
|
||||
const GLubyte *start, *rowStart, *iter = NULL;
|
||||
GLushort *iter2;
|
||||
int ww, hh, dd, k;
|
||||
|
||||
@@ -7075,7 +7075,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;
|
||||
@@ -8983,4 +8983,4 @@ static void halveImage3D(int components,
|
||||
|
||||
/*** mipmap.c ***/
|
||||
|
||||
} // end of namespace osg
|
||||
} // end of namespace osg
|
||||
|
||||
Reference in New Issue
Block a user