Skip to content

Commit

Permalink
More wasm build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Nov 12, 2024
1 parent dd8ab56 commit e3b83ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/viewer/re_viewer/src/ui/settings_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn settings_screen_ui_impl(ui: &mut egui::Ui, app_options: &mut AppOptions, keep
});
}

// This affects only the web target, so we dont need to show it on native.
// This affects only the web target, so we don't need to show it on native.
#[cfg(target_arch = "wasm32")]
{
let hardware_acceleration = &mut app_options.video_decoder_hw_acceleration;
Expand All @@ -155,16 +155,16 @@ fn settings_screen_ui_impl(ui: &mut egui::Ui, app_options: &mut AppOptions, keep
.show_ui(ui, |ui| {
ui.selectable_value(
hardware_acceleration,
DecodeHardwareAcceleration::Auto,
DecodeHardwareAcceleration::Auto.to_string(),
re_video::decode::DecodeHardwareAcceleration::Auto,
re_video::decode::DecodeHardwareAcceleration::Auto.to_string(),
) | ui.selectable_value(
hardware_acceleration,
DecodeHardwareAcceleration::PreferSoftware,
DecodeHardwareAcceleration::PreferSoftware.to_string(),
re_video::decode::DecodeHardwareAcceleration::PreferSoftware,
re_video::decode::DecodeHardwareAcceleration::PreferSoftware.to_string(),
) | ui.selectable_value(
hardware_acceleration,
DecodeHardwareAcceleration::PreferHardware,
DecodeHardwareAcceleration::PreferHardware.to_string(),
re_video::decode::DecodeHardwareAcceleration::PreferHardware,
re_video::decode::DecodeHardwareAcceleration::PreferHardware.to_string(),
)
});
// Note that the setting is part of the video's cache key, so, if it changes, the cache
Expand Down

0 comments on commit e3b83ca

Please sign in to comment.