Fix T51967: OSL crash after rendering finished (mainly on Windows).

This commit is contained in:
Brecht Van Lommel 2017-07-08 02:46:06 +02:00
parent dbaaff2e09
commit 3361f2107b
Notes: blender-bot 2023-02-14 06:49:53 +01:00
Referenced by issue #51996, Point Density casts wrong shadows
Referenced by issue #51997, particle evaluation order is wrong when viewport visibility is off
Referenced by issue #52001, Artifacts with Principled BSDF in Material view - master
Referenced by issue #51967, [osl/windows] crash when rendering finished.
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ void OSLShaderManager::device_free(Device *device, DeviceScene *dscene, Scene *s
og->surface_state.clear();
og->volume_state.clear();
og->displacement_state.clear();
og->bump_state.clear();
og->background_state.reset();
}