Fix T48377: Cycles crash removing float image texture node during viewport render.
This commit is contained in:
parent
5fde5616e0
commit
e362b04c43
@ -767,7 +767,7 @@ void ImageManager::device_update(Device *device, DeviceScene *dscene, Progress&
|
||||
continue;
|
||||
|
||||
if(images[type][slot]->users == 0) {
|
||||
device_free_image(device, dscene, slot + tex_image_byte_start);
|
||||
device_free_image(device, dscene, type_index_to_flattened_slot(slot, (ImageDataType)type));
|
||||
}
|
||||
else if(images[type][slot]->need_load) {
|
||||
if(!osl_texture_system || images[type][slot]->builtin_data)
|
||||
|
Loading…
Reference in New Issue
Block a user