diff options
author | Brian <[email protected]> | 2008-04-14 20:56:08 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-04-14 20:56:08 -0600 |
commit | b54225ccd6d3bc1b678e27c2f00ebddf5bf1046d (patch) | |
tree | 3ccc1062f60c8604a3776d43e42392ae95a87de9 /src | |
parent | fdd794dcfa33482bdabe7c04ec9df655e0c69bfc (diff) |
gallium: set ctx->Const.MaxDrawBuffers
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 4 |
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); } |