gallium: set ctx->Const.MaxDrawBuffers
authorBrian <brian.paul@tungstengraphics.com>
Tue, 15 Apr 2008 02:56:08 +0000 (20:56 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 15 Apr 2008 02:56:08 +0000 (20:56 -0600)
src/mesa/state_tracker/st_extensions.c

index 47a50d40ca1fe71278dab7fe2301370c777c65a7..2f7ac074da6c9661e89da8dbdd3dae91d0c5bc3b 100644 (file)
@@ -111,6 +111,10 @@ void st_init_limits(struct st_context *st)
 
    st->bitmap_texcoord_bias
       = screen->get_paramf(screen, PIPE_CAP_BITMAP_TEXCOORD_BIAS);
+
+   c->MaxDrawBuffers
+      = CLAMP(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS),
+              1, MAX_DRAW_BUFFERS);
 }