Merge branch 'blender-v4.1-release'

This commit is contained in:
Brecht Van Lommel
2024-02-29 17:55:37 +01:00

View File

@@ -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];