Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 9a5a6704428..488eea40500 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -65,9 +65,10 @@
#include "BLI_threads.h"
#include "BLI_blenlib.h"
+#include "GPU_buffers.h"
+#include "GPU_draw.h"
#include "GPU_extensions.h"
#include "GPU_material.h"
-#include "GPU_draw.h"
#include "smoke_API.h"
@@ -804,11 +805,15 @@ void GPU_free_unused_buffers(void)
BLI_lock_thread(LOCK_OPENGL);
+ /* images */
for(ima=image_free_queue.first; ima; ima=ima->id.next)
GPU_free_image(ima);
BLI_freelistN(&image_free_queue);
+ /* vbo buffers */
+ GPU_buffer_pool_free_unused(0);
+
BLI_unlock_thread(LOCK_OPENGL);
}