Fix T47447: Cycles crash when reaching texture limit with 3D textures

This commit is contained in:
Sergey Sharybin 2016-02-17 11:43:03 +01:00
parent 4431caae1a
commit d6b77450ce
Notes: blender-bot 2024-01-31 11:35:08 +01:00
Referenced by issue #47447, Segmentation Fault with Smoke on GPU in this scene
1 changed files with 2 additions and 1 deletions

View File

@ -32,8 +32,9 @@ Attribute::~Attribute()
if(element == ATTR_ELEMENT_VOXEL) {
VoxelAttribute *voxel_data = data_voxel();
if(voxel_data)
if(voxel_data && voxel_data->slot != -1) {
voxel_data->manager->remove_image(voxel_data->slot);
}
}
}