mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
cogl-pipeline: Fix the layer_has_alpha_cb
_cogl_pipeline_needs_blending_enabled tries to determine whether each layer is using the default combine state. However it was using argument 0 for both checks so the if-statement would never be true.
This commit is contained in:
parent
3984f79c28
commit
62a12a16a2
@ -749,8 +749,8 @@ layer_has_alpha_cb (CoglPipelineLayer *layer, void *data)
|
||||
if (big_state->texture_combine_alpha_func != GL_MODULATE ||
|
||||
big_state->texture_combine_alpha_src[0] != GL_PREVIOUS ||
|
||||
big_state->texture_combine_alpha_op[0] != GL_SRC_ALPHA ||
|
||||
big_state->texture_combine_alpha_src[0] != GL_TEXTURE ||
|
||||
big_state->texture_combine_alpha_op[0] != GL_SRC_ALPHA)
|
||||
big_state->texture_combine_alpha_src[1] != GL_TEXTURE ||
|
||||
big_state->texture_combine_alpha_op[1] != GL_SRC_ALPHA)
|
||||
{
|
||||
*has_alpha = TRUE;
|
||||
/* return FALSE to stop iterating layers... */
|
||||
|
Loading…
Reference in New Issue
Block a user