Browse Source

mesa: replace 8 with NUM_UNITS

tags/mesa_7_6_rc1
Brian Paul 16 years ago
parent
commit
a7a3d3c271
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/mesa/main/ffvertex_prog.c

+ 4
- 1
src/mesa/main/ffvertex_prog.c View File

@@ -46,6 +46,9 @@
#include "shader/prog_statevars.h"


/** Max of number of lights and texture coord units */
#define NUM_UNITS MAX2(MAX_TEXTURE_COORD_UNITS, MAX_LIGHTS)

struct state_key {
unsigned light_color_material_mask:12;
unsigned light_global_enabled:1;
@@ -77,7 +80,7 @@ struct state_key {
unsigned texgen_mode1:4;
unsigned texgen_mode2:4;
unsigned texgen_mode3:4;
} unit[8];
} unit[NUM_UNITS];
};



Loading…
Cancel
Save