Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 973a346f57bb34cc3f40b2efc392e4339eec4255 Mon Sep 17 00:00:00 2001
- From: Neil Roberts <neil@linux.intel.com>
- Date: Wed, 9 Feb 2011 19:31:42 +0000
- Subject: [PATCH] cogl-framebuffer: Remove all dependencies after a flush
- After a dependent framebuffer is added to a framebuffer it was never
- getting removed. Once the journal for a framebuffer is flushed we no
- longer depend on any framebuffers so the list should be cleared. This
- was causing leaks of offscreens and textures.
- ---
- clutter/cogl/cogl/cogl-framebuffer.c | 1 +
- 1 files changed, 1 insertions(+), 0 deletions(-)
- diff --git a/clutter/cogl/cogl/cogl-framebuffer.c b/clutter/cogl/cogl/cogl-framebuffer.c
- index a788dd5..dc5205c 100644
- --- a/clutter/cogl/cogl/cogl-framebuffer.c
- +++ b/clutter/cogl/cogl/cogl-framebuffer.c
- @@ -597,6 +597,7 @@ _cogl_framebuffer_flush_dependency_journals (CoglFramebuffer *framebuffer)
- GList *l;
- for (l = framebuffer->deps; l; l = l->next)
- _cogl_framebuffer_flush_journal (l->data);
- + _cogl_framebuffer_remove_all_dependencies (framebuffer);
- }
- static inline void
- --
- 1.7.3.16.g9464b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement