From: Brian Date: Tue, 15 Apr 2008 02:56:08 +0000 (-0600) Subject: gallium: set ctx->Const.MaxDrawBuffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b54225ccd6d3bc1b678e27c2f00ebddf5bf1046d;p=mesa.git gallium: set ctx->Const.MaxDrawBuffers --- diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 47a50d40ca1..2f7ac074da6 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -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); }