gallium: init ctx->Const.MaxTextureUnits
This commit is contained in:
@@ -83,7 +83,8 @@ void st_init_limits(struct st_context *st)
|
|||||||
c->MaxTextureRectSize
|
c->MaxTextureRectSize
|
||||||
= min(1 << (c->MaxTextureLevels - 1), MAX_TEXTURE_RECT_SIZE);
|
= min(1 << (c->MaxTextureLevels - 1), MAX_TEXTURE_RECT_SIZE);
|
||||||
|
|
||||||
c->MaxTextureImageUnits
|
c->MaxTextureUnits
|
||||||
|
= c->MaxTextureImageUnits
|
||||||
= c->MaxTextureCoordUnits
|
= c->MaxTextureCoordUnits
|
||||||
= min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS),
|
= min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS),
|
||||||
MAX_TEXTURE_IMAGE_UNITS);
|
MAX_TEXTURE_IMAGE_UNITS);
|
||||||
|
Reference in New Issue
Block a user