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

Commit

Permalink
Fix record-pngs
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Dec 8, 2023
1 parent c9fef18 commit 39267ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comfy-wgpu/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,11 @@ impl WgpuRenderer {
);
}

let config = self.context.config.borrow();

#[cfg(feature = "record-pngs")]
screenshot::record_pngs(
uvec2(self.config.width, self.config.height),
uvec2(config.width, config.height),
&self.context,
&self.screenshot_buffer,
&output,
Expand Down

0 comments on commit 39267ae

Please sign in to comment.