pipeline: Fix argument checking in set_depth_state()

This commit is contained in:
Emmanuele Bassi 2011-05-18 11:50:56 +01:00
parent 8680e3bfeb
commit 57db73873e

View File

@ -4719,8 +4719,8 @@ cogl_pipeline_set_depth_state (CoglPipeline *pipeline,
CoglPipeline *authority; CoglPipeline *authority;
CoglDepthState *orig_state; CoglDepthState *orig_state;
g_return_val_if_fail (cogl_is_pipeline (pipeline), TRUE); g_return_val_if_fail (cogl_is_pipeline (pipeline), FALSE);
g_return_if_fail (depth_state->magic == COGL_DEPTH_STATE_MAGIC); g_return_val_if_fail (depth_state->magic == COGL_DEPTH_STATE_MAGIC, FALSE);
authority = _cogl_pipeline_get_authority (pipeline, state); authority = _cogl_pipeline_get_authority (pipeline, state);