diff --git a/src/render/mod.rs b/src/render/mod.rs index 06953e72..df146077 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -2861,6 +2861,10 @@ pub(crate) fn prepare_bind_groups( render_pipeline: Res, gpu_images: Res>, ) { + if effects_meta.spawner_buffer.is_empty() || effects_meta.spawner_buffer.buffer().is_none() { + return; + } + { #[cfg(feature = "trace")] let _span = bevy::utils::tracing::info_span!("shared_bind_groups").entered();