mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 00:00:12 +01:00
gallium: init ctx->Const.MaxTextureUnits
This commit is contained in:
parent
f8c09464f8
commit
9d287a1841
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue