Fix for DeviceScene::attributes_uchar4 not released properly

Reviewed by: dingto
Differential Revision: https://developer.blender.org/D620
This commit is contained in:
Tamito Kajiyama 2014-06-27 08:56:57 +02:00 committed by Thomas Dinges
parent bd777ffd3b
commit 0a0e4e0e69

@ -1131,6 +1131,7 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene)
device->tex_free(dscene->attributes_map); device->tex_free(dscene->attributes_map);
device->tex_free(dscene->attributes_float); device->tex_free(dscene->attributes_float);
device->tex_free(dscene->attributes_float3); device->tex_free(dscene->attributes_float3);
device->tex_free(dscene->attributes_uchar4);
dscene->bvh_nodes.clear(); dscene->bvh_nodes.clear();
dscene->object_node.clear(); dscene->object_node.clear();
@ -1148,6 +1149,7 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene)
dscene->attributes_map.clear(); dscene->attributes_map.clear();
dscene->attributes_float.clear(); dscene->attributes_float.clear();
dscene->attributes_float3.clear(); dscene->attributes_float3.clear();
dscene->attributes_uchar4.clear();
#ifdef WITH_OSL #ifdef WITH_OSL
OSLGlobals *og = (OSLGlobals*)device->osl_memory(); OSLGlobals *og = (OSLGlobals*)device->osl_memory();