forked from bartvdbraak/blender
Cycles:
* Compile fix when building without OSL.
This commit is contained in:
parent
10305de3ac
commit
cb75d64f7d
@ -967,6 +967,7 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene)
|
|||||||
dscene->attributes_float.clear();
|
dscene->attributes_float.clear();
|
||||||
dscene->attributes_float3.clear();
|
dscene->attributes_float3.clear();
|
||||||
|
|
||||||
|
#ifdef WITH_OSL
|
||||||
OSLGlobals *og = (OSLGlobals*)device->osl_memory();
|
OSLGlobals *og = (OSLGlobals*)device->osl_memory();
|
||||||
|
|
||||||
if(og) {
|
if(og) {
|
||||||
@ -974,6 +975,7 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene)
|
|||||||
og->attribute_map.clear();
|
og->attribute_map.clear();
|
||||||
og->object_names.clear();
|
og->object_names.clear();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MeshManager::tag_update(Scene *scene)
|
void MeshManager::tag_update(Scene *scene)
|
||||||
|
Loading…
Reference in New Issue
Block a user