Mesa (mesa_7_6_branch): st/mesa: silence hidden parameter warning

Brian Paul brianp at kemper.freedesktop.org
Thu Oct 1 20:56:24 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: b154497bef386e5ed0d9a2f6e25a4141759c6846
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b154497bef386e5ed0d9a2f6e25a4141759c6846

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Oct  1 14:49:04 2009 -0600

st/mesa: silence hidden parameter warning

---

 src/mesa/state_tracker/st_cb_drawpixels.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index a9cafbf..c655690 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -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);




More information about the mesa-commit mailing list