From 29b01c2aba99ed828f43a614b30b49c52a28557f Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 21 Jun 2013 11:27:42 +0100 Subject: [PATCH] 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 (cherry picked from commit 109c815bf747fe027a74f098b4fcb6ea4846a482) --- cogl/cogl-pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl-pipeline.c b/cogl/cogl-pipeline.c index 01cd5f3ec..7c38dca53 100644 --- a/cogl/cogl-pipeline.c +++ b/cogl/cogl-pipeline.c @@ -789,13 +789,13 @@ _cogl_pipeline_change_implies_transparency (CoglPipeline *pipeline, 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; } 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; }