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:
authorBenoit Bolsee <benoit.bolsee@online.be>2010-08-24 01:31:57 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2010-08-24 01:31:57 +0400
commit9b685a4b7848a5ee05b119ec67d3c0b56717f04e (patch)
tree46d3993f084dee895f1cbffb69940c8bdbec7bc8 /source/blender/gpu
parent972c6d86f0c39371f96e712e381cdb160fa33314 (diff)
Fix quasy systematic crash at Blender exit: globalPool was released twice
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index daef5de0ce6..5bddb42add2 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -148,6 +148,9 @@ void GPU_buffer_pool_free(GPUBufferPool *pool)
MEM_freeN(pool->buffers);
MEM_freeN(pool);
+ /* if we are releasing the global pool, stop keeping a reference to it */
+ if (pool == globalPool)
+ globalPool = NULL;
}
void GPU_buffer_pool_free_unused(GPUBufferPool *pool)