Fix T47201: Cycles+OSL keeps image files open until Blender exits

Now image will be opened for while render session is active, this is
needed to keep image cache working correctly. But stopping render
should now release all files descriptors.
This commit is contained in:
Sergey Sharybin
2016-01-19 14:55:40 +05:00
parent dea38d78c4
commit d44ea880ea

View File

@@ -186,7 +186,7 @@ void OSLShaderManager::texture_system_free()
ts_shared_users--;
if(ts_shared_users == 0) {
OSL::TextureSystem::destroy(ts_shared);
OSL::TextureSystem::destroy(ts_shared, true);
ts_shared = NULL;
}