diff options
author | Patrick Mours <pmours@nvidia.com> | 2019-11-25 20:36:55 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2019-11-25 20:36:55 +0300 |
commit | 03cdfc2ff6df61a247b90c4ad8bb1b26034b4505 (patch) | |
tree | 2cff9b889733d8e9659690d592cf63c3248dc87a /source/blender/editors/space_clip/clip_buttons.c | |
parent | b374b24f1b2dea4360f318fe3c86bede00bdaae4 (diff) |
Fix potential access to deleted memory in OptiX kernel loading code
Calling "OptiXDevice::load_kernels" multiple times would call "optixPipelineDestroy" on a pipeline
pointer that may have already been deleted previously (since the PIP_SHADER_EVAL pipeline is only
created conditionally).
This change also avoids a CUDA kernel reload every time this is called. The CUDA kernels are
precompiled and don't change, so there is no need to reload them every time.
Diffstat (limited to 'source/blender/editors/space_clip/clip_buttons.c')
0 files changed, 0 insertions, 0 deletions