Skip to content

Commit

Permalink
Use the parameters passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
fawdlstty committed Nov 24, 2024
1 parent 3ded742 commit 671a056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/store/re_types/src/archetypes/depth_image_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl DepthImage {
) -> Self {
let buffer = bytes.into();

let image_format = ImageFormat::depth([width, height], ChannelDatatype::U16);
let image_format = ImageFormat::depth([width, height], datatype);

let num_expected_bytes = image_format.num_bytes();
if buffer.len() != num_expected_bytes {
Expand Down

0 comments on commit 671a056

Please sign in to comment.