[cogl] pipeline: Fix argument checking in set_depth_state()



commit 57db73873eb210f4ec51ae71852f533bc5640e68
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed May 18 11:50:56 2011 +0100

    pipeline: Fix argument checking in set_depth_state()

 cogl/cogl-pipeline.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl-pipeline.c b/cogl/cogl-pipeline.c
index 96dc546..0955d95 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]