Advertisement
Guest User

Untitled

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