Blender Git Loki
Git Commits -> Revision 03cdfc2
Revision 03cdfc2 by Patrick Mours (master) November 25, 2019, 17:36 (GMT) |
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. |
Commit Details:
Full Hash: 03cdfc2ff6df61a247b90c4ad8bb1b26034b4505
Parent Commit: b374b24
Lines Changed: +19, -16
1 Modified Path:
/intern/cycles/device/device_optix.cpp (+19, -16) (Diff)