Cycles: Fix Metal API validation error when Metal motion blur workaround is applied
Following #114544: When running with Metal API validation enabled, allocating a zero-sized buffer results in validation errors. This silences that. Pull Request: https://projects.blender.org/blender/blender/pulls/114680
This commit is contained in:
parent
360684d5a4
commit
c30c6b2d4e
|
@ -976,7 +976,7 @@ bool BVHMetal::build_TLAS(Progress &progress,
|
|||
storage_mode = MTLResourceStorageModeShared;
|
||||
}
|
||||
|
||||
id<MTLBuffer> nullBuf = [device newBufferWithLength:0 options:storage_mode];
|
||||
id<MTLBuffer> nullBuf = [device newBufferWithLength:sizeof(float3) options:storage_mode];
|
||||
|
||||
/* Create an acceleration structure. */
|
||||
MTLAccelerationStructureTriangleGeometryDescriptor *geomDesc =
|
||||
|
|
Loading…
Reference in New Issue