renderer: fix fbo-draw-buffers-blend

Need to use the correct index into the array.
macos/master
Dave Airlie 9 years ago
parent fabf037077
commit 74c2612250
  1. 4
      src/vrend_renderer.c

@ -3010,8 +3010,8 @@ static void vrend_hw_emit_blend(struct vrend_context *ctx, struct pipe_blend_sta
translate_blend_factor(state->rt[i].rgb_dst_factor),
translate_blend_factor(state->rt[i].alpha_src_factor),
translate_blend_factor(state->rt[i].alpha_dst_factor));
glBlendEquationSeparateiARB(i, translate_blend_func(state->rt[0].rgb_func),
translate_blend_func(state->rt[0].alpha_func));
glBlendEquationSeparateiARB(i, translate_blend_func(state->rt[i].rgb_func),
translate_blend_func(state->rt[i].alpha_func));
glEnableIndexedEXT(GL_BLEND, i);
} else
glDisableIndexedEXT(GL_BLEND, i);

Loading…
Cancel
Save