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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user