Skip to content

Commit

Permalink
Fix OpenGL compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Jul 9, 2023
1 parent d65c868 commit 99e2fa5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gui/glium_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,13 @@ impl<'a> Renderer<'a> {
&mut self,
frame: &mut Frame,
rcp_output: &mut RCPOutput,
output_size: &OutputDimensions,
imgui_draw_data: &imgui::DrawData,
) -> anyhow::Result<()> {
// Prepare the context device
self.graphics_device.start_frame(frame);

// Process the RCP output
self.render_game(frame, rcp_output, output_size)?;
self.render_game(frame, rcp_output)?;

// Render the ImGui content
self.renderer.render(frame, imgui_draw_data)?;
Expand All @@ -127,7 +126,6 @@ impl<'a> Renderer<'a> {
&mut self,
frame: &mut Frame,
rcp_output: &mut RCPOutput,
_output_size: &OutputDimensions,
) -> anyhow::Result<()> {
// omit the last draw call, because we know we that's an extra from the last flush
// for draw_call in &self.rcp_output.draw_calls[..self.rcp_output.draw_calls.len() - 1] {
Expand Down

0 comments on commit 99e2fa5

Please sign in to comment.