diff options
author | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-29 16:48:45 +0000 |
---|---|---|
committer | Tilman Sauerbeck <tilman@freedesktop.org> | 2006-06-29 16:48:45 +0000 |
commit | ff3a5b1842bf26783a487674c5ff4cb40f405f25 (patch) | |
tree | c2f496c0caabff36e50227dd625f84fa15633cde /src/mesa/drivers/dri/r300/r300_context.h | |
parent | 8ca6250d724edb74f1ca980e2dcc8a6dfdf073c4 (diff) |
instead of messing with _TNL_LAST_GENERIC and _TNL_FIRST_GENERIC, use _TNL_NUM_GENERIC. this fixes an off-by-one error (we didn't handle the final attribute)
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index 0f3683fc09..e1d5b08580 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -544,7 +544,7 @@ struct r300_vap_reg_state { int i_color[2]; int i_fog; int i_tex[R300_MAX_TEXTURE_UNITS]; - int i_attrib[_TNL_LAST_GENERIC-_TNL_FIRST_GENERIC]; + int i_attrib[_TNL_NUM_GENERIC]; int i_index; int i_pointsize; }; |