diff options
author | Brian Paul <[email protected]> | 2009-01-04 10:04:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-04 10:04:44 -0700 |
commit | 6cbaa2226fa1237b9f314828fbbc1c8db6509de8 (patch) | |
tree | 1c085dede6593ada40b43553f7afbbc9ce59fafd /src/mesa/state_tracker/st_extensions.c | |
parent | 9832f928503d59d2244d832a28fb7195d8d6bfec (diff) |
gallium: fix MaxTextureCoordUnits init
Fixes Cell regression.
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 7023659c17d..8ec2113f074 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -92,9 +92,10 @@ void st_init_limits(struct st_context *st) = _min(screen->get_param(screen, PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS), MAX_VERTEX_TEXTURE_IMAGE_UNITS); - c->MaxTextureCoordUnits = MAX_TEXTURE_COORD_UNITS; + c->MaxTextureCoordUnits + = _min(c->MaxTextureImageUnits, MAX_TEXTURE_COORD_UNITS); - c->MaxTextureUnits = MIN2(c->MaxTextureImageUnits, c->MaxTextureCoordUnits); + c->MaxTextureUnits = _min(c->MaxTextureImageUnits, c->MaxTextureCoordUnits); c->MaxDrawBuffers = _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS), |