diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-11-21 17:24:27 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-12-06 18:51:57 +0000 |
commit | 104a6be84c9366ff8f7b9155148603f0f52104bb (patch) | |
tree | c36c988e1a3306f089960df75e5d1c15a8a511af /cogl/cogl-framebuffer.c | |
parent | ff4921cef99da1f62583635554896a5ae585678a (diff) | |
download | cogl-104a6be84c9366ff8f7b9155148603f0f52104bb.tar.gz |
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 <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-framebuffer.c')
-rw-r--r-- | cogl/cogl-framebuffer.c | 10 |
1 files changed, 0 insertions, 10 deletions
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) |