mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T66412: crash with displacement and AO node in viewport renders
This commit is contained in:
parent
33987caf3e
commit
acf26dee5f
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue