Skip to content

Commit 9de7bd4

Browse files
authored
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`.
1 parent 17e3efa commit 9de7bd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/bevy_render/src/batching/gpu_preprocessing.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,8 @@ impl FromWorld for GpuPreprocessingSupport {
11071107
DownlevelFlags::VERTEX_AND_INSTANCE_INDEX_RESPECTS_RESPECTIVE_FIRST_VALUE_IN_INDIRECT_DRAW
11081108
);
11091109

1110-
let max_supported_mode = if device.limits().max_compute_workgroup_size_x == 0
1110+
let max_supported_mode = if !feature_support
1111+
|| device.limits().max_compute_workgroup_size_x == 0
11111112
|| is_non_supported_android_device(adapter)
11121113
{
11131114
GpuPreprocessingMode::None

0 commit comments

Comments
 (0)