diff options
author | Silas Bartha <[email protected]> | 2024-12-10 16:06:06 -0500 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-12-10 16:06:06 -0500 |
commit | 3c229ff55b3ba1b618e00fb48f2b350709a58c02 (patch) | |
tree | d611701543a91b53399cf8029b124a725ccb1548 /src/systems.rs | |
parent | 3c711f2012c865c2a17077b2980c53437c4812bc (diff) |
Diffstat (limited to 'src/systems.rs')
-rw-r--r-- | src/systems.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/systems.rs b/src/systems.rs index bb0efc7..64cf930 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -9,18 +9,18 @@ use bevy::{ use pollster::FutureExt; -use crate::{components::HeadlessRenderDestination, render_assets::{HeadlessRenderSource, GpuHeadlessRenderSource}}; +use crate::{ + components::{HeadlessRenderDestination, HeadlessRenderSource}, + render_assets::GpuHeadlessRenderSource, +}; pub fn copy_buffers( - mut headless_render_query: Query<( - &Handle<HeadlessRenderSource>, - &mut HeadlessRenderDestination, - )>, + mut headless_render_query: Query<(&HeadlessRenderSource, &mut HeadlessRenderDestination)>, sources: Res<RenderAssets<GpuHeadlessRenderSource>>, device: Res<RenderDevice>, ) { for (source_handle, destination_handle) in headless_render_query.iter_mut() { - let Some(gpu_source) = sources.get(source_handle) else { + let Some(gpu_source) = sources.get(source_handle.id()) else { continue; }; |