summaryrefslogtreecommitdiff
path: root/cogl/cogl-clip-state.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-11-22 19:35:31 +0000
committerRobert Bragg <robert@linux.intel.com>2011-12-06 18:51:57 +0000
commit6ab371d587e22ac5807f9224cd420c43168a803f (patch)
treee3ea700f6dd949c8823af7e2e093fd1f5ebb561a /cogl/cogl-clip-state.c
parent6d1bf9a0d40277b14fc52488bc59c0088039d055 (diff)
downloadcogl-6ab371d587e22ac5807f9224cd420c43168a803f.tar.gz
clip-state: remove redundant _cogl_clip_state_flush() api
There was only one place where we called _cogl_clip_state_flush() in _cogl_framebuffer_flush_state() and we can just as well use _cogl_clip_state_get_stack() and _cogl_clip_stack_flush() directly instead. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-clip-state.c')
-rw-r--r--cogl/cogl-clip-state.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/cogl/cogl-clip-state.c b/cogl/cogl-clip-state.c
index 229e6ad1..8a1013f8 100644
--- a/cogl/cogl-clip-state.c
+++ b/cogl/cogl-clip-state.c
@@ -203,13 +203,3 @@ _cogl_clip_state_restore_clip_stack (CoglClipState *clip_state)
clip_state->stacks = g_slist_delete_link (clip_state->stacks,
clip_state->stacks);
}
-
-void
-_cogl_clip_state_flush (CoglClipState *clip_state,
- CoglFramebuffer *framebuffer)
-{
- /* Flush the topmost stack. The clip stack code will bail out early
- if this is already flushed */
- _cogl_clip_stack_flush (clip_state->stacks->data,
- framebuffer);
-}