st/mesa: Use blend equation and function of first render target for all render target...
authorFabian Bieler <der.fabe@gmx.net>
Thu, 10 Feb 2011 15:45:41 +0000 (16:45 +0100)
committerBrian Paul <brianp@vmware.com>
Mon, 14 Feb 2011 21:37:18 +0000 (14:37 -0700)
commita476ca1fd1b4e76e31c9babfd7fb2a54a09f21d3
tree47be91587eb0981d5b24c5af5fedfd866bb24d34
parenta87730ff3f83253465fbe9a1e9e9b1ea92cb79b9
st/mesa: Use blend equation and function of first render target for all render targets if ARB_draw_buffers_blend is not supported

If EXT_draw_buffers2 is supported but ARB_draw_buffers_blend isn't
_mesa_BlendFuncSeparateEXT only sets up the blend equation and function for the
first render target. This patch makes sure that update_blend doesn't try to use
the data from other rendertargets in such cases.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_blend.c