Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Oops add missing queue.submit for screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Sep 18, 2023
1 parent 3c06c9b commit f448ccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
.ra_target/
.ra_target/
image.png
3 changes: 2 additions & 1 deletion comfy-wgpu/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,8 @@ impl WgpuRenderer {
},
output.texture.size(),
);

self.context.queue.submit(std::iter::once(encoder.finish()));
}

pollster::block_on(async {
Expand Down Expand Up @@ -1692,7 +1694,6 @@ impl WgpuRenderer {

self.screenshot_buffer.buffer.unmap();


output.present();
}

Expand Down

0 comments on commit f448ccb

Please sign in to comment.