Skip to content

Commit

Permalink
UB
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Aug 27, 2024
1 parent ca7b68d commit 42b1285
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wgpu-hal/src/dx12/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,9 @@ impl crate::CommandEncoder for super::CommandEncoder {
flags,
ds.clear_value.0,
ds.clear_value.1 as u8,
&[], // TODO: Pass None when https://github.com/microsoft/win32metadata/pull/1971 is in windows-rs
// &[], // TODO: Pass None when https://github.com/microsoft/win32metadata/pull/1971 is in windows-rs
// This is UB.
std::slice::from_raw_parts(std::ptr::null(), 0),
)
}
}
Expand Down

0 comments on commit 42b1285

Please sign in to comment.