Merge branch 'blender-v4.1-release'
This commit is contained in:
@@ -523,7 +523,7 @@ bool MetalDeviceQueue::enqueue(DeviceKernel kernel,
|
||||
break;
|
||||
}
|
||||
|
||||
if (bvhMetalRT) {
|
||||
if (bvhMetalRT && bvhMetalRT->accel_struct) {
|
||||
/* Mark all Accelerations resources as used */
|
||||
[mtlComputeCommandEncoder useResource:bvhMetalRT->accel_struct
|
||||
usage:MTLResourceUsageRead];
|
||||
|
||||
Reference in New Issue
Block a user