Commit 6cbaa222 authored by Brian Paul's avatar Brian Paul

gallium: fix MaxTextureCoordUnits init

Fixes Cell regression.
parent 9832f928
......@@ -92,9 +92,10 @@ void st_init_limits(struct st_context *st)
= _min(screen->get_param(screen, PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS),
c->MaxTextureCoordUnits = MAX_TEXTURE_COORD_UNITS;
= _min(c->MaxTextureImageUnits, MAX_TEXTURE_COORD_UNITS);
c->MaxTextureUnits = MIN2(c->MaxTextureImageUnits, c->MaxTextureCoordUnits);
c->MaxTextureUnits = _min(c->MaxTextureImageUnits, c->MaxTextureCoordUnits);
= _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment