Skip to content

Commit

Permalink
Fix colormaps (#2204)
Browse files Browse the repository at this point in the history
Regression from #2190
  • Loading branch information
emilk committed May 25, 2023
1 parent 5e32fe7 commit 5d685a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/re_viewer/src/ui/view_spatial/ui_2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ pub fn view_2d(
) {
Ok(command_buffer) => command_buffer,
Err(err) => {
re_log::error!("Failed to fill view builder: {}", err);
re_log::error_once!("Failed to fill view builder: {err}");
return response;
}
};
Expand Down
2 changes: 1 addition & 1 deletion crates/re_viewer/src/ui/view_spatial/ui_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ pub fn view_3d(
) {
Ok(command_buffer) => command_buffer,
Err(err) => {
re_log::error!("Failed to fill view builder: {}", err);
re_log::error_once!("Failed to fill view builder: {err}");
return;
}
};
Expand Down
2 changes: 1 addition & 1 deletion crates/re_viewer_context/src/gpu_bridge/tensor_to_gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn class_id_tensor_to_gpu(
Texture2DCreationDesc {
label: "class_id_colormap".into(),
data: data.into(),
format: TextureFormat::Rgba8Unorm,
format: TextureFormat::Rgba8UnormSrgb,
width: colormap_width as u32,
height: colormap_height as u32,
}
Expand Down

0 comments on commit 5d685a9

Please sign in to comment.