Skip to content

Commit

Permalink
Fix for newer WebGPU typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Dec 18, 2024
1 parent c105244 commit d6df6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/webgpu/WebGPURecorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ class WebGPUCommandEncoderBeginRenderPass extends WebGPUCommand {
) {
super( result, [
commandEncoder,
[ ...descriptor.colorAttachments ].flatMap( attachment => attachment === null ? [] : [
[ ...descriptor.colorAttachments ].flatMap( attachment => ( attachment === null || attachment === undefined ) ? [] : [
attachment.view,
...( attachment.resolveTarget ? [ attachment.resolveTarget ] : [] )
] ),
Expand Down

0 comments on commit d6df6f5

Please sign in to comment.