silence compiler warning (zoomY0)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Sep 2000 17:44:52 +0000 (17:44 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Sep 2000 17:44:52 +0000 (17:44 +0000)
src/mesa/main/drawpix.c

index 93dd66a04293da0fd67c776ff6f7847b0e1178c2..237e7021513250bc008772c4633dd88714fab907 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drawpix.c,v 1.31 2000/08/30 18:22:28 brianp Exp $ */
+/* $Id: drawpix.c,v 1.32 2000/09/06 17:44:52 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -142,7 +142,7 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y,
       GLint skipRows = unpack->SkipRows;
       GLint rowLength;
       GLdepth zSpan[MAX_WIDTH];  /* only used when zooming */
-      GLint zoomY0;
+      GLint zoomY0 = 0;
 
       if (unpack->RowLength > 0)
          rowLength = unpack->RowLength;
@@ -175,8 +175,6 @@ fast_draw_pixels(GLcontext *ctx, GLint x, GLint y,
             drawHeight -= (destY + drawHeight - ctx->DrawBuffer->Ymax - 1);
          if (drawHeight <= 0)
             return GL_TRUE;
-
-         zoomY0 = 0;  /* not used - silence compiler warning */
       }
       else if (ctx->Pixel.ZoomX==1.0F && ctx->Pixel.ZoomY==-1.0F) {
          /* upside-down image */