Skip to content

Commit

Permalink
GS: Clear draw queue when using the null renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes authored and refractionpcsx2 committed Jul 7, 2024
1 parent b2062c9 commit 8543e87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pcsx2/GS/Renderers/Null/GSRendererNull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

GSRendererNull::GSRendererNull() = default;

void GSRendererNull::VSync(u32 field, bool registers_written, bool idle_frame)
{
GSRenderer::VSync(field, registers_written, idle_frame);

m_draw_transfers.clear();
}

void GSRendererNull::Draw()
{
}
Expand Down
1 change: 1 addition & 0 deletions pcsx2/GS/Renderers/Null/GSRendererNull.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class GSRendererNull final : public GSRenderer
GSRendererNull();

protected:
void VSync(u32 field, bool registers_written, bool idle_frame) override;
void Draw() override;
GSTexture* GetOutput(int i, float& scale, int& y_offset) override;
};

0 comments on commit 8543e87

Please sign in to comment.