[Cogl] [PATCH] pipeline: make _GET_LAYER_NO_CREATE enum a flag
Robert Bragg
robert at sixbynine.org
Tue Aug 28 08:48:10 PDT 2012
From: Robert Bragg <robert at linux.intel.com>
_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.
---
cogl/cogl-pipeline-private.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cogl/cogl-pipeline-private.h b/cogl/cogl-pipeline-private.h
index 36422cc..d315b45 100644
--- a/cogl/cogl-pipeline-private.h
+++ b/cogl/cogl-pipeline-private.h
@@ -616,7 +616,7 @@ void _cogl_pipeline_update_blend_enable (CoglPipeline *pipeline,
typedef enum
{
- COGL_PIPELINE_GET_LAYER_NO_CREATE
+ COGL_PIPELINE_GET_LAYER_NO_CREATE = 1<<0
} CoglPipelineGetLayerFlags;
CoglPipelineLayer *
--
1.7.7.6
More information about the Cogl
mailing list