util: Fix c++ enum casting pickiness
Fix problems when included from c++ Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17816>
This commit is contained in:
parent
68b88fae8c
commit
1dd5dd9765
1 changed files with 2 additions and 2 deletions
|
|
@ -136,8 +136,8 @@ static inline bool
|
|||
util_blend_uses_dest(struct pipe_rt_blend_state rt)
|
||||
{
|
||||
return rt.blend_enable &&
|
||||
(util_blend_factor_uses_dest(rt.rgb_src_factor, false) ||
|
||||
util_blend_factor_uses_dest(rt.alpha_src_factor, true) ||
|
||||
(util_blend_factor_uses_dest((enum pipe_blendfactor)rt.rgb_src_factor, false) ||
|
||||
util_blend_factor_uses_dest((enum pipe_blendfactor)rt.alpha_src_factor, true) ||
|
||||
rt.rgb_dst_factor != PIPE_BLENDFACTOR_ZERO ||
|
||||
rt.alpha_dst_factor != PIPE_BLENDFACTOR_ZERO);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue