From 3d1335aeed77cdb0f08e0d9efe106bb391728637 Mon Sep 17 00:00:00 2001 From: charlotte Date: Mon, 31 Mar 2025 11:10:22 -0700 Subject: [PATCH] Use GpuPreprocessingMode::None if features not supported. (#18630) # Objective Fixes #18463 ## Solution The features didn't seem to be getting checked for selecting `GpuPreprocessingMode::None`. --- crates/bevy_render/src/batching/gpu_preprocessing.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_render/src/batching/gpu_preprocessing.rs b/crates/bevy_render/src/batching/gpu_preprocessing.rs index b2db3a0f92..b8edb932ed 100644 --- a/crates/bevy_render/src/batching/gpu_preprocessing.rs +++ b/crates/bevy_render/src/batching/gpu_preprocessing.rs @@ -1107,7 +1107,8 @@ impl FromWorld for GpuPreprocessingSupport { DownlevelFlags::VERTEX_AND_INSTANCE_INDEX_RESPECTS_RESPECTIVE_FIRST_VALUE_IN_INDIRECT_DRAW ); - let max_supported_mode = if device.limits().max_compute_workgroup_size_x == 0 + let max_supported_mode = if !feature_support + || device.limits().max_compute_workgroup_size_x == 0 || is_non_supported_android_device(adapter) { GpuPreprocessingMode::None