mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
opengl: Fix conditional call of BlendFuncSeparate
Checking whether src_rgb != src_alpha twice is pointless; not checking whether dst_rgb != dst_alpha is clearly wrong. Found by Coverity. Signed-off-by: Adam Jackson <ajax@redhat.com> https://bugzilla.gnome.org/show_bug.cgi?id=689850 Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit fc292c25db3004543e277d92693ab9cb388d2121)
This commit is contained in:
parent
491618a74c
commit
f326401094
@ -516,8 +516,8 @@ _cogl_pipeline_flush_color_blend_alpha_depth_state (
|
||||
if (ctx->glBlendFuncSeparate &&
|
||||
(blend_state->blend_src_factor_rgb !=
|
||||
blend_state->blend_src_factor_alpha ||
|
||||
(blend_state->blend_src_factor_rgb !=
|
||||
blend_state->blend_src_factor_alpha)))
|
||||
(blend_state->blend_dst_factor_rgb !=
|
||||
blend_state->blend_dst_factor_alpha)))
|
||||
GE (ctx, glBlendFuncSeparate (blend_state->blend_src_factor_rgb,
|
||||
blend_state->blend_dst_factor_rgb,
|
||||
blend_state->blend_src_factor_alpha,
|
||||
|
Loading…
Reference in New Issue
Block a user