mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
pipeline: Fix argument checking in set_depth_state()
This commit is contained in:
parent
8680e3bfeb
commit
57db73873e
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user