diff --git a/src/gui.rs b/src/gui.rs index 6866fe0..8f435b3 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -239,7 +239,6 @@ impl<'a> Gui<'a> { self.gfx_renderer.draw_content( &mut frame, &mut self.rcp_output, - &self.rcp.rdp.output_dimensions, draw_data, )?; diff --git a/src/gui/wgpu_renderer.rs b/src/gui/wgpu_renderer.rs index 81bf46c..7a24223 100644 --- a/src/gui/wgpu_renderer.rs +++ b/src/gui/wgpu_renderer.rs @@ -178,8 +178,7 @@ impl<'a> Renderer<'a> { self.surface_config.height = height.max(1); self.surface.configure(&self.device, &self.surface_config); self.depth_texture = create_depth_texture(&self.surface_config, &self.device); - self.graphics_device - .resize(&self.surface_config, &self.device); + self.graphics_device.resize([width, height]); } pub fn get_current_texture(&mut self) -> Option { @@ -198,7 +197,6 @@ impl<'a> Renderer<'a> { &mut self, frame: &mut Frame, rcp_output: &mut RCPOutput, - output_size: &OutputDimensions, imgui_draw_data: &imgui::DrawData, ) -> anyhow::Result<()> { let frame_texture = frame @@ -239,7 +237,7 @@ impl<'a> Renderer<'a> { .process_rcp_output(&self.device, &self.queue, self.surface_config.format, rcp_output); // Draw the RCP output - self.graphics_device.draw(output_size, &mut rpass); + self.graphics_device.draw(&mut rpass); // Drop the render pass drop(rpass);