fb22383993
_cogl_pipeline_get_layer_with_flags accepts a CoglPipelineGetLayerFlags flags argument and understands one COGL_PIPELINE_GET_LAYER_NO_CREATE flag. There was a mistake with the definition of this enum though so COGL_PIPELINE_GET_LAYER_NO_CREATE had a value of 0 and so testing for the flag using the bitwise & operator would never find the flag set. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 5923f92f1428b3eb4977b5f21723f1b19a9d284a)