radeon: fix incorrect loop limit (warned by -O3)
authorBrian Paul <brianp@vmware.com>
Fri, 21 Aug 2009 17:04:01 +0000 (11:04 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 21 Aug 2009 17:04:37 +0000 (11:04 -0600)
src/mesa/drivers/dri/radeon/radeon_state_init.c

index 57aa7f1ca46c8a42bb55ec26e04106224260d9e6..501ea0b66b1740e13932c686ad61de253b2dd566 100644 (file)
@@ -798,7 +798,7 @@ void radeonInitState( r100ContextPtr rmesa )
       rmesa->hw.glt.emit = vec_emit;
       rmesa->hw.eye.emit = vec_emit;
       
-      for (i = 0; i <= 6; i++)
+      for (i = 0; i < 6; i++)
         rmesa->hw.mat[i].emit = vec_emit;
 
       for (i = 0; i < 8; i++)