Fix #34121: OSL + persistent images option was not freeing shader memory properly,

causing memory to increase continuously during animation render.
This commit is contained in:
2013-02-14 16:11:47 +00:00
parent a47af30561
commit adbd84c320
9 changed files with 42 additions and 10 deletions

View File

@@ -362,7 +362,7 @@ static Scene *preview_prepare_scene(Scene *scene, ID *id, int id_type, ShaderPre
}
else {
/* use current scene world to light sphere */
if (ma->pr_type == MA_SPHERE_A)
if (mat->pr_type == MA_SPHERE_A)
sce->world = scene->world;
}