Fix T66412: crash with displacement and AO node in viewport renders

This commit is contained in:
Brecht Van Lommel 2019-07-04 13:11:25 +02:00
parent 33987caf3e
commit acf26dee5f
Notes: blender-bot 2023-02-14 01:59:32 +01:00
Referenced by issue #66412, Cycles displacement crashes blender when Material output displacement is influenced by AO node
1 changed files with 3 additions and 0 deletions

View File

@ -2315,6 +2315,9 @@ void MeshManager::device_free(Device *device, DeviceScene *dscene)
dscene->attributes_float3.free();
dscene->attributes_uchar4.free();
/* Signal for shaders like displacement not to do ray tracing. */
dscene->data.bvh.bvh_layout = BVH_LAYOUT_NONE;
#ifdef WITH_OSL
OSLGlobals *og = (OSLGlobals *)device->osl_memory();