Skip to content

Commit

Permalink
Run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Jul 6, 2023
1 parent 03166f2 commit 03f24e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,8 @@ impl<'a> Gui<'a> {

// Render RCPOutput and ImGui content
let draw_data = self.imgui.render();
self.gfx_renderer.draw_content(
&mut frame,
&mut self.rcp_output,
draw_data,
)?;
self.gfx_renderer
.draw_content(&mut frame, &mut self.rcp_output, draw_data)?;

// Clear the draw calls
self.rcp_output.clear_draw_calls();
Expand Down
8 changes: 6 additions & 2 deletions src/gui/wgpu_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,12 @@ impl<'a> Renderer<'a> {
self.graphics_device.update_frame_count();

// Process the RCP output
self.graphics_device
.process_rcp_output(&self.device, &self.queue, self.surface_config.format, rcp_output);
self.graphics_device.process_rcp_output(
&self.device,
&self.queue,
self.surface_config.format,
rcp_output,
);

// Draw the RCP output
self.graphics_device.draw(&mut rpass);
Expand Down

0 comments on commit 03f24e6

Please sign in to comment.