diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-11-28 11:29:57 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-11-28 11:33:48 +0300 |
commit | 96cff85610d9d3a6ec8b204bb69f3ab146843497 (patch) | |
tree | fd03ca8af45eb3b5acd239c3a0308e86dcd6485b /source | |
parent | c5ac037c8e118ea8a9186c018b53534505bee638 (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.c | 1 |
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; } } |