st/mesa: silence hidden parameter warning
authorBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 20:49:04 +0000 (14:49 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 20:49:04 +0000 (14:49 -0600)
src/mesa/state_tracker/st_cb_drawpixels.c

index a9cafbf8cdcea529ec52d3ede58fa27b34a77a40..c655690603865613aed7d789a8d1c41a7bd25b67 100644 (file)
@@ -598,15 +598,15 @@ draw_textured_quad(GLcontext *ctx, GLint x, GLint y, GLfloat z,
 
    /* viewport state: viewport matching window dims */
    {
-      const float width = (float) ctx->DrawBuffer->Width;
-      const float height = (float) ctx->DrawBuffer->Height;
+      const float w = (float) ctx->DrawBuffer->Width;
+      const float h = (float) ctx->DrawBuffer->Height;
       struct pipe_viewport_state vp;
-      vp.scale[0] =  0.5f * width;
-      vp.scale[1] = -0.5f * height;
+      vp.scale[0] =  0.5f * w;
+      vp.scale[1] = -0.5f * h;
       vp.scale[2] = 1.0f;
       vp.scale[3] = 1.0f;
-      vp.translate[0] = 0.5f * width;
-      vp.translate[1] = 0.5f * height;
+      vp.translate[0] = 0.5f * w;
+      vp.translate[1] = 0.5f * h;
       vp.translate[2] = 0.0f;
       vp.translate[3] = 0.0f;
       cso_set_viewport(cso, &vp);