[cogl/wip/virtual-framebuffer: 27/37] fix: virtual framebuffer



commit 1726b95bb18a3d4c87391ce19e6b8ace8c43f48c
Author: Robert Bragg <robert linux intel com>
Date:   Tue Nov 22 21:28:19 2011 +0000

    fix: virtual framebuffer

 cogl/cogl-framebuffer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 343d008..f9bb28e 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -1589,7 +1589,8 @@ _cogl_framebuffer_flush_state (CoglFramebuffer *draw_buffer,
 {
   CoglContext *ctx = draw_buffer->context;
 
-  _COGL_RETURN_IF_FAIL (!cogl_is_virtual_framebuffer (framebuffer));
+  _COGL_RETURN_IF_FAIL (!cogl_is_virtual_framebuffer (draw_buffer));
+  _COGL_RETURN_IF_FAIL (!cogl_is_virtual_framebuffer (read_buffer));
 
   /* We can assume that any state that has changed for the current
    * framebuffer is different to the currently flushed value. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]