From: Brian Paul Date: Fri, 21 Aug 2009 17:04:01 +0000 (-0600) Subject: radeon: fix incorrect loop limit (warned by -O3) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef98eed0a94f3b76399b19f9f65ca6977cd11b5d;p=mesa.git radeon: fix incorrect loop limit (warned by -O3) --- diff --git a/src/mesa/drivers/dri/radeon/radeon_state_init.c b/src/mesa/drivers/dri/radeon/radeon_state_init.c index 57aa7f1ca46..501ea0b66b1 100644 --- a/src/mesa/drivers/dri/radeon/radeon_state_init.c +++ b/src/mesa/drivers/dri/radeon/radeon_state_init.c @@ -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++)