Fix cut and paste error (reported by Jerome Glisse)
authorVladimir Dergachev <volodya@freedesktop.org>
Sun, 19 Dec 2004 15:39:40 +0000 (15:39 +0000)
committerVladimir Dergachev <volodya@freedesktop.org>
Sun, 19 Dec 2004 15:39:40 +0000 (15:39 +0000)
src/mesa/drivers/dri/r300/r300_state.c

index 48f01643aadf88d4f4575d875a211c23809a1bd0..86b457bf82c3310a1257c0afcac797b354098af1 100644 (file)
@@ -269,9 +269,9 @@ void r300ResetHwState(r300ContextPtr r300)
                        r300PackFloat32(-v[MAT_SY]);
                r300->hw.vpt.cmd[R300_VPT_YOFFSET] =
                        r300PackFloat32(-v[MAT_TY] + yoffset);
-               r300->hw.vpt.cmd[R300_VPT_YSCALE] =
+               r300->hw.vpt.cmd[R300_VPT_ZSCALE] =
                        r300PackFloat32(v[MAT_SZ]);
-               r300->hw.vpt.cmd[R300_VPT_YOFFSET] =
+               r300->hw.vpt.cmd[R300_VPT_ZOFFSET] =
                        r300PackFloat32(v[MAT_TZ]);
        }