GPU: Cancel VRAM writes on Reset

This commit is contained in:
Stenzek 2024-05-31 19:48:44 +10:00
parent d013438810
commit 53600746c7
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -180,6 +180,9 @@ void GPU::Reset(bool clear_vram)
std::memset(g_gpu_clut, 0, sizeof(g_gpu_clut));
}
// Cancel VRAM writes.
m_blitter_state = BlitterState::Idle;
// Force event to reschedule itself.
m_crtc_tick_event->Deactivate();
m_command_tick_event->Deactivate();

View file

@ -232,11 +232,11 @@ bool GPU_HW::Initialize()
void GPU_HW::Reset(bool clear_vram)
{
GPU::Reset(clear_vram);
if (m_batch_vertex_ptr)
UnmapGPUBuffer(0, 0);
GPU::Reset(clear_vram);
if (m_sw_renderer)
m_sw_renderer->Reset();