From 5d685a92cdacdca0c62b180c8aff807c465d39ff Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 24 May 2023 22:02:30 +0200 Subject: [PATCH] Fix colormaps (#2204) Regression from https://github.com/rerun-io/rerun/pull/2190 --- crates/re_viewer/src/ui/view_spatial/ui_2d.rs | 2 +- crates/re_viewer/src/ui/view_spatial/ui_3d.rs | 2 +- crates/re_viewer_context/src/gpu_bridge/tensor_to_gpu.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/re_viewer/src/ui/view_spatial/ui_2d.rs b/crates/re_viewer/src/ui/view_spatial/ui_2d.rs index 97bad75fe30d..9c9bf30545bd 100644 --- a/crates/re_viewer/src/ui/view_spatial/ui_2d.rs +++ b/crates/re_viewer/src/ui/view_spatial/ui_2d.rs @@ -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; } }; diff --git a/crates/re_viewer/src/ui/view_spatial/ui_3d.rs b/crates/re_viewer/src/ui/view_spatial/ui_3d.rs index 17b429a474a5..604c713ad23a 100644 --- a/crates/re_viewer/src/ui/view_spatial/ui_3d.rs +++ b/crates/re_viewer/src/ui/view_spatial/ui_3d.rs @@ -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; } }; diff --git a/crates/re_viewer_context/src/gpu_bridge/tensor_to_gpu.rs b/crates/re_viewer_context/src/gpu_bridge/tensor_to_gpu.rs index 35a87a850e61..ead7f7eae5da 100644 --- a/crates/re_viewer_context/src/gpu_bridge/tensor_to_gpu.rs +++ b/crates/re_viewer_context/src/gpu_bridge/tensor_to_gpu.rs @@ -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, }