Fix warnings when compiling tests.

This commit is contained in:
Crozet Sébastien
2021-05-17 09:46:07 +02:00
parent dc9552e175
commit abb4742758
2 changed files with 17 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ use bevy_egui::{egui, EguiContext};
pub fn update_ui(ui_context: &EguiContext, state: &mut TestbedState, harness: &mut Harness) {
egui::Window::new("Parameters").show(ui_context.ctx(), |ui| {
if state.backend_names.len() > 1 && !state.example_names.is_empty() {
#[cfg(feature = "dim3")]
#[cfg(all(feature = "dim3", feature = "other-backends"))]
let prev_selected_backend = state.selected_backend;
let mut changed = false;
egui::ComboBox::from_label("backend")