mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
Fix the check for whether snippets require pipeline to need blending
When determining whether a pipeline needs blending, it was previously returning TRUE if the pipeline has no snippets, whereas it should be the other way around because we can't determine the final colour when there are snipets. https://bugzilla.gnome.org/show_bug.cgi?id=702570 Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 109c815bf747fe027a74f098b4fcb6ea4846a482)
This commit is contained in:
parent
3ccd22b9e0
commit
29b01c2aba
@ -789,13 +789,13 @@ _cogl_pipeline_change_implies_transparency (CoglPipeline *pipeline,
|
|||||||
|
|
||||||
if (changes & COGL_PIPELINE_STATE_FRAGMENT_SNIPPETS)
|
if (changes & COGL_PIPELINE_STATE_FRAGMENT_SNIPPETS)
|
||||||
{
|
{
|
||||||
if (!_cogl_pipeline_has_non_layer_fragment_snippets (pipeline))
|
if (_cogl_pipeline_has_non_layer_fragment_snippets (pipeline))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changes & COGL_PIPELINE_STATE_VERTEX_SNIPPETS)
|
if (changes & COGL_PIPELINE_STATE_VERTEX_SNIPPETS)
|
||||||
{
|
{
|
||||||
if (!_cogl_pipeline_has_non_layer_vertex_snippets (pipeline))
|
if (_cogl_pipeline_has_non_layer_vertex_snippets (pipeline))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user