diff options
author | Roland Scheidegger <[email protected]> | 2010-01-25 19:27:05 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-01-25 19:27:05 +0100 |
commit | 5fae36147e1067ac8b1eb5bcade2f9b1dbf29aa4 (patch) | |
tree | cd1b28cbd46c2961b1e8d253a06f6c29f57c512d /src/mesa/state_tracker/st_extensions.c | |
parent | 0d3a6a505d537b879f31be0ed14fa8577717efaf (diff) |
st/mesa: handle EXT_draw_buffers2 per rendertarget blend enables / colormasks
uses the new gallium per-rt blend functionality
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 2a5fb27d8f3..a7411c86439 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -315,4 +315,14 @@ void st_init_extensions(struct st_context *st) if (st->pipe->render_condition) { ctx->Extensions.NV_conditional_render = GL_TRUE; } + + if (screen->get_param(screen, PIPE_CAP_INDEP_BLEND_ENABLE)) { + ctx->Extensions.EXT_draw_buffers2 = GL_TRUE; + } + +#if 0 /* not yet */ + if (screen->get_param(screen, PIPE_CAP_INDEP_BLEND_FUNC)) { + ctx->Extensions.ARB_draw_buffers_blend = GL_TRUE; + } +#endif } |