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
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-11-28 11:29:57 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-11-28 11:33:48 +0300
commit96cff85610d9d3a6ec8b204bb69f3ab146843497 (patch)
treefd03ca8af45eb3b5acd239c3a0308e86dcd6485b /source
parentc5ac037c8e118ea8a9186c018b53534505bee638 (diff)
Fix possible hang on buffer allocation failure. Reported by coverity
scan, thanks...errr.
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index a55b7f76bb3..6a60b4dfd37 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -525,6 +525,7 @@ static GPUBuffer *gpu_buffer_setup(DerivedMesh *dm, GPUDrawObject *object,
if (!(buffer && (varray = glMapBuffer(target, GL_WRITE_ONLY)))) {
if (buffer)
gpu_buffer_free_intern(buffer);
+ BLI_mutex_unlock(&buffer_mutex);
return NULL;
}
}