summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-09-06 17:44:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-09-06 17:44:52 +0000
commit724f2939f4cf351dba37a8d80e1a01fdcf07f3c2 (patch)
tree695e4b5c8828c3d46c78a3180aac3b7da02777d0 /src
parentafa61173a86166cd0ea3389c6f5b4c617789afb7 (diff)
silence compiler warning (zoomY0)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/drawpix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c
index 93dd66a0429..237e7021513 100644
--- a/src/mesa/main/drawpix.c
+++ b/src/mesa/main/drawpix.c
@@ -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 */