summaryrefslogtreecommitdiff
path: root/cogl
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-05-18 11:50:56 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-05-18 11:50:56 +0100
commit57db73873eb210f4ec51ae71852f533bc5640e68 (patch)
tree2b23e2e79e12a3a84e0bd65a4553020a9dd17563 /cogl
parent8680e3bfeb8d064ce898e8fb07853c199b87e836 (diff)
downloadcogl-57db73873eb210f4ec51ae71852f533bc5640e68.tar.gz
pipeline: Fix argument checking in set_depth_state()
Diffstat (limited to 'cogl')
-rw-r--r--cogl/cogl-pipeline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/cogl-pipeline.c b/cogl/cogl-pipeline.c
index 96dc5467..0955d95e 100644
--- a/cogl/cogl-pipeline.c
+++ b/cogl/cogl-pipeline.c
@@ -4719,8 +4719,8 @@ cogl_pipeline_set_depth_state (CoglPipeline *pipeline,
CoglPipeline *authority;
CoglDepthState *orig_state;
- g_return_val_if_fail (cogl_is_pipeline (pipeline), TRUE);
- g_return_if_fail (depth_state->magic == COGL_DEPTH_STATE_MAGIC);
+ g_return_val_if_fail (cogl_is_pipeline (pipeline), FALSE);
+ g_return_val_if_fail (depth_state->magic == COGL_DEPTH_STATE_MAGIC, FALSE);
authority = _cogl_pipeline_get_authority (pipeline, state);