diff --git a/cogl/cogl-clip-stack.c b/cogl/cogl-clip-stack.c index b9db676c5..8600f3012 100644 --- a/cogl/cogl-clip-stack.c +++ b/cogl/cogl-clip-stack.c @@ -1003,15 +1003,3 @@ _cogl_clip_stack_flush (CoglClipStack *stack, ctx->current_clip_stack_uses_stencil = using_stencil_buffer; } - -void -_cogl_clip_stack_dirty (void) -{ - _COGL_GET_CONTEXT (ctx, NO_RETVAL); - - if (ctx->current_clip_stack_valid) - { - ctx->current_clip_stack_valid = FALSE; - _cogl_clip_stack_unref (ctx->current_clip_stack); - } -} diff --git a/cogl/cogl-clip-stack.h b/cogl/cogl-clip-stack.h index 0a77a1834..a7b934668 100644 --- a/cogl/cogl-clip-stack.h +++ b/cogl/cogl-clip-stack.h @@ -215,7 +215,4 @@ _cogl_clip_stack_ref (CoglClipStack *stack); void _cogl_clip_stack_unref (CoglClipStack *stack); -void -_cogl_clip_stack_dirty (void); - #endif /* __COGL_CLIP_STACK_H */ diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c index be0ee7951..a7b0e0865 100644 --- a/cogl/cogl-framebuffer.c +++ b/cogl/cogl-framebuffer.c @@ -1102,8 +1102,6 @@ notify_buffers_changed (CoglFramebuffer *old_draw_buffer, ctx->dirty_bound_framebuffer = 1; ctx->dirty_gl_viewport = 1; - _cogl_clip_stack_dirty (); - if (old_draw_buffer && new_draw_buffer) { /* If the two draw framebuffers have a different color mask then