From 104a6be84c9366ff8f7b9155148603f0f52104bb Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 21 Nov 2011 17:24:27 +0000 Subject: cogl-matrix-stack: remove flush avoidance checks The aim is to make cogl-framebuffer.c responsible for avoiding redundant flushing of its matrix stacks so this removes the checks done directly within cogl-matrix-stack.c. Reviewed-by: Neil Roberts --- cogl/cogl-framebuffer.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'cogl/cogl-framebuffer.c') diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c index 0fcb4336..be0ee795 100644 --- a/cogl/cogl-framebuffer.c +++ b/cogl/cogl-framebuffer.c @@ -1102,16 +1102,6 @@ notify_buffers_changed (CoglFramebuffer *old_draw_buffer, ctx->dirty_bound_framebuffer = 1; ctx->dirty_gl_viewport = 1; - /* We've effectively just switched the current modelview and - * projection matrix stacks and clip state so we need to dirty - * them to ensure they get flushed for the next batch of geometry - * we flush */ - if (new_draw_buffer) - { - _cogl_matrix_stack_dirty (new_draw_buffer->modelview_stack); - _cogl_matrix_stack_dirty (new_draw_buffer->projection_stack); - } - _cogl_clip_stack_dirty (); if (old_draw_buffer && new_draw_buffer) -- cgit v1.2.1