diff options
author | Brian <[email protected]> | 2008-04-01 11:28:01 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-04-01 11:28:01 -0600 |
commit | 9d287a184111693a1fbb9231b1d7a8afa56e9ae5 (patch) | |
tree | fa8bbceb999b418244564539cb6efecc212fa11d /src/mesa/state_tracker/st_extensions.c | |
parent | f8c09464f801e97b24ccdb1ba70444c60d4235bd (diff) |
gallium: init ctx->Const.MaxTextureUnits
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 7fab4d041d0..20f4652413d 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -83,7 +83,8 @@ void st_init_limits(struct st_context *st) c->MaxTextureRectSize = min(1 << (c->MaxTextureLevels - 1), MAX_TEXTURE_RECT_SIZE); - c->MaxTextureImageUnits + c->MaxTextureUnits + = c->MaxTextureImageUnits = c->MaxTextureCoordUnits = min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS), MAX_TEXTURE_IMAGE_UNITS); |