Fix T51967: OSL crash after rendering finished (mainly on Windows).
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Sat, 8 Jul 2017 00:46:06 +0000 (02:46 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sat, 8 Jul 2017 00:46:06 +0000 (02:46 +0200)
intern/cycles/render/osl.cpp

index 6bff29d1c761f76ab6920ed153f875fb054cecb3..a794f233718cd738463628b4428c49753aa4ccd7 100644 (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();
 }