[gegl] buffer/gegl-buffer-cl-cache.c: forgot to release GPU memory!



commit 5f6cbc7cba563c4d214233468205d31a7afbb4b3
Author: Victor Oliveira <victormatheus gmail com>
Date:   Sun Jan 20 23:03:54 2013 -0200

    buffer/gegl-buffer-cl-cache.c: forgot to release GPU memory!

 gegl/buffer/gegl-buffer-cl-cache.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-cl-cache.c b/gegl/buffer/gegl-buffer-cl-cache.c
index 621c054..86842cf 100644
--- a/gegl/buffer/gegl-buffer-cl-cache.c
+++ b/gegl/buffer/gegl-buffer-cl-cache.c
@@ -177,11 +177,13 @@ gegl_buffer_cl_cache_flush2 (GeglTileHandlerCache *cache,
         {
           CacheEntry *entry = data;
 
-#if 0
+#if 1
           GEGL_NOTE (GEGL_DEBUG_OPENCL, "Removing from cl-cache: %p %s {%d %d %d %d}", entry->buffer, babl_get_name(entry->buffer->soft_format),
                                                                                        entry->roi.x, entry->roi.y, entry->roi.width, entry->roi.height);
 #endif
 
+          gegl_clReleaseMemObject(entry->tex);
+
           memset (entry, 0x0, sizeof (CacheEntry));
 
           g_slice_free (CacheEntry, data);



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