r300: Corrected a bug in r300LineWidth.
authorOliver McFadden <z3ro.geek@gmail.com>
Thu, 21 Jun 2007 15:53:26 +0000 (15:53 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Thu, 21 Jun 2007 15:53:26 +0000 (15:53 +0000)
Thanks to Panagiotis Papadakos for reporting it.

src/mesa/drivers/dri/r300/r300_state.c

index e6c394610dda73a1556272f5e4f1553773332ad8..bdd6855802bb3239f8163ae54e5bb88a8d836f5b 100644 (file)
@@ -715,7 +715,7 @@ static void r300LineWidth(GLcontext * ctx, GLfloat widthf)
        widthf = ctx->Line._Width;
 
        R300_STATECHANGE(r300, lcntl);
-       r300->hw.lcntl.cmd[1] |=
+       r300->hw.lcntl.cmd[1] =
            R300_LINE_CNT_HO | R300_LINE_CNT_VE | (int)(widthf * 6.0);
 }