diff --git a/reactos/lib/glu32/libutil/mipmap.c b/reactos/lib/glu32/libutil/mipmap.c index 235733c8082..fc68022a5b0 100644 --- a/reactos/lib/glu32/libutil/mipmap.c +++ b/reactos/lib/glu32/libutil/mipmap.c @@ -4862,6 +4862,7 @@ static void fill_image(const PixelStorageModes *psm, if (padding) { rowsize += psm->unpack_alignment - padding; } + start = (const GLubyte *) userdata + psm->unpack_skip_rows * rowsize + (psm->unpack_skip_pixels * components / 8); elements_per_line = width * components; @@ -5102,7 +5103,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; @@ -5987,7 +5988,7 @@ static void scaleInternalPackedPixel(int components, int i,j,k,xindex; const char *temp, *temp0; - int outindex; + int outindex = 0; int lowx_int, highx_int, lowy_int, highy_int; float x_percent, y_percent;