gallium: query PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS to set ctx->Constants.MaxVertexTextu...
authorBrian <brian.paul@tungstengraphics.com>
Wed, 3 Dec 2008 05:37:35 +0000 (22:37 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 4 Dec 2008 16:58:54 +0000 (09:58 -0700)
src/mesa/state_tracker/st_extensions.c

index 60fd440ef773f0810fe0e7e3eab4b096f9a8d0b8..d96899b611e584315029541c6d87806c369a8fcf 100644 (file)
@@ -89,6 +89,9 @@ void st_init_limits(struct st_context *st)
       = _min(screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS),
             MAX_TEXTURE_IMAGE_UNITS);
 
+   c->MaxVertexTextureImageUnits
+      = screen->get_param(screen, PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS);
+
    c->MaxDrawBuffers
       = _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS),
               1, MAX_DRAW_BUFFERS);