diff options
author | Gustaw Smolarczyk <[email protected]> | 2017-03-30 20:09:20 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-08 20:29:57 +0200 |
commit | 3cc91537fa9edb4924a7492465ef845f165462df (patch) | |
tree | 426404e8b15c8992cbf6a5e69e3d472addee8336 /src | |
parent | 098ca9949db35cbad92728b5d216aa37685b33ba (diff) |
mesa/main/ff_frag: Use correct constant.
Since fixed-function shaders are restricted to MAX_TEXTURE_COORD_UNITS
texture units, use this constant instead of MAX_TEXTURE_UNITS. This
reduces the array size from 32 to 8.
Signed-off-by: Gustaw Smolarczyk <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/ff_fragment_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index f007ac3b40f..7679328d4ce 100644 --- a/src/mesa/main/ff_fragment_shader.cpp +++ b/src/mesa/main/ff_fragment_shader.cpp @@ -123,7 +123,7 @@ struct state_key { struct mode_opt OptRGB[MAX_COMBINER_TERMS]; struct mode_opt OptA[MAX_COMBINER_TERMS]; - } unit[MAX_TEXTURE_UNITS]; + } unit[MAX_TEXTURE_COORD_UNITS]; }; #define FOG_NONE 0 |