summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-04-14 20:56:08 -0600
committerBrian <[email protected]>2008-04-14 20:56:08 -0600
commitb54225ccd6d3bc1b678e27c2f00ebddf5bf1046d (patch)
tree3ccc1062f60c8604a3776d43e42392ae95a87de9 /src/mesa/state_tracker/st_extensions.c
parentfdd794dcfa33482bdabe7c04ec9df655e0c69bfc (diff)
gallium: set ctx->Const.MaxDrawBuffers
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c4
1 files changed, 4 insertions, 0 deletions
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);
}