diff --git a/crates/bevy_render/src/pipeline/pipeline_compiler.rs b/crates/bevy_render/src/pipeline/pipeline_compiler.rs index 1831b97bd3994..26c575bdce495 100644 --- a/crates/bevy_render/src/pipeline/pipeline_compiler.rs +++ b/crates/bevy_render/src/pipeline/pipeline_compiler.rs @@ -235,7 +235,9 @@ impl PipelineCompiler { //TODO: add other buffers (like instancing) here let mut vertex_buffer_descriptors = Vec::::default(); - vertex_buffer_descriptors.push(compiled_vertex_buffer_descriptor); + if !pipeline_layout.vertex_buffer_descriptors.is_empty() { + vertex_buffer_descriptors.push(compiled_vertex_buffer_descriptor); + } pipeline_layout.vertex_buffer_descriptors = vertex_buffer_descriptors; specialized_descriptor.multisample.count = pipeline_specialization.sample_count;