mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
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 <wielkiegie@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
098ca9949d
commit
3cc91537fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue