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

5 Modified Paths:

/intern/cycles/kernel/kernel_displace.h (+2, -0) (Diff)
/intern/cycles/kernel/kernel_path.h (+23, -7) (Diff)
/intern/cycles/kernel/kernel_shader.h (+17, -0) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+13, -9) (Diff)
/intern/cycles/kernel/osl/osl_shader.h (+2, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021