diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-01-05 06:58:27 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-01-05 06:58:27 +0400 |
commit | d9697bc1455dc556fd233aae9d45b523af62669b (patch) | |
tree | bd3bdcf47862f45362c7aef105efa193c586966c /source/blender/blenkernel/intern/font.c | |
parent | 0074eac1ed6a876a951f04b6a017fd7058041558 (diff) |
Fix T38024 crash when rebuilding sculpt mode buffers.
Main issue here is that glBuf* calls were invoked from threads different than
main thread. This caused a crash (since those do not have a GL context active).
Fix here is twofold:
* add an ID buffer in buffer pool that handles pbvh buffers and is freed
from main thread when gpu_buffer_pool_free_unused is called.
* do not create glbuffers in derivedmesh creation routine, rather tag nodes
for update and create those in the draw function
(guaranteed to be called from main thread)
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D169
Diffstat (limited to 'source/blender/blenkernel/intern/font.c')
0 files changed, 0 insertions, 0 deletions