summaryrefslogtreecommitdiff
path: root/cogl/cogl-pipeline-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-11-11 16:28:45 +0000
committerRobert Bragg <robert@linux.intel.com>2010-11-23 12:50:28 +0000
commit56f36cf9c2cb06317462992229159b632e94b6d5 (patch)
tree4e40bd177bb83f9af0b0d98aa20ac5d10e929768 /cogl/cogl-pipeline-private.h
parent1a3f946cc66b37f6043488a9b7b68df58b994d63 (diff)
downloadcogl-56f36cf9c2cb06317462992229159b632e94b6d5.tar.gz
primitives: validate with _cogl_pipeline_foreach_layer
Switch _cogl_rectangles_with_multitexture_coords to using _cogl_pipeline_foreach_layer to iterate the layers of a pipeline when validating instead of iterating the pipelines internal list, which is risky since any modifications to pipelines (even to an override pipeline derived from the original), could potentially corrupt the list as it is being iterated.
Diffstat (limited to 'cogl/cogl-pipeline-private.h')
-rw-r--r--cogl/cogl-pipeline-private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl-pipeline-private.h b/cogl/cogl-pipeline-private.h
index 611cd8a6..c0477c3d 100644
--- a/cogl/cogl-pipeline-private.h
+++ b/cogl/cogl-pipeline-private.h
@@ -599,7 +599,8 @@ gboolean
_cogl_pipeline_get_real_blend_enabled (CoglPipeline *pipeline);
gboolean
-_cogl_pipeline_layer_has_user_matrix (CoglPipelineLayer *layer);
+_cogl_pipeline_layer_has_user_matrix (CoglPipeline *pipeline,
+ int layer_index);
/*
* Calls the pre_paint method on the layer texture if there is