Blender Git Loki
Git Commits -> Revision f3a91f4
Revision f3a91f4 by Lukas Toenne (master) September 5, 2012, 08:12 (GMT) |
Fix for OSL memory leak. The context creation for OSL is now done in the shader_setup_* functions, since it should specific to the sample being worked on. The the context release then happens in the kernel_shader functions after shader evaluation is done. Care has to be taken to ensure the shader_release function is also called in cases where the path integration is cancelled early, this was the main cause for unreleased contexts and subsequent new allocations. |
Commit Details:
Full Hash: f3a91f461ca94557a8125915544676cc765a5709
SVN Revision: 50410
Parent Commit: 99fcec3
Lines Changed: +57, -17