mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
GPU: Cancel VRAM writes on Reset
This commit is contained in:
parent
d013438810
commit
53600746c7
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue