mesa: replace 8 with MAX_TEXTURE_UNITS
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 21:34:16 +0000 (15:34 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 23:39:31 +0000 (17:39 -0600)
src/mesa/main/texenvprogram.c

index 3e5d65c8755a88c605a38e67a8dd3a56f36a1928..f19bb993000fd1fc34e4346dedcdf15b459e8ed8 100644 (file)
@@ -109,7 +109,7 @@ struct state_key {
       GLuint NumArgsA:3;
       GLuint ModeA:5;
       struct mode_opt OptA[MAX_COMBINER_TERMS];
-   } unit[8];
+   } unit[MAX_TEXTURE_UNITS];
 };
 
 #define FOG_LINEAR  0