pipeline: initialize HashState flags member
authorRobert Bragg <robert@linux.intel.com>
Wed, 8 Dec 2010 11:35:16 +0000 (11:35 +0000)
committerRobert Bragg <robert@linux.intel.com>
Wed, 8 Dec 2010 18:35:02 +0000 (18:35 +0000)
There are a set of "EvalFlags" that get passed to _cogl_pipeline_hash
that can tweak the semantics of what state is evaluated for hashing but
these flags weren't getting passed via the HashState state structure
so it would be undefined if you would get the correct semantics.

clutter/cogl/cogl/cogl-pipeline.c

index 970ded0..80d0897 100644 (file)
@@ -5990,6 +5990,7 @@ _cogl_pipeline_hash (CoglPipeline *pipeline,
 
   state.hash = 0;
   state.layer_differences = layer_differences;
+  state.flags = flags;
 
   /* hash non-sparse state */