Skip to content

Commit 904a094

Browse files
GS/DX11: Destroy uav resources.
1 parent 7f20ff6 commit 904a094

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

pcsx2/GS/Renderers/DX11/GSDevice11.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,20 @@ void GSDevice11::Destroy()
649649
}
650650
m_state.current_ds = nullptr;
651651

652+
if (m_state.rt_uav)
653+
{
654+
m_state.rt_uav->Release();
655+
m_state.rt_uav = nullptr;
656+
}
657+
m_state.current_rt_uav = nullptr;
658+
659+
if (m_state.ds_uav)
660+
{
661+
m_state.ds_uav->Release();
662+
m_state.ds_uav = nullptr;
663+
}
664+
m_state.current_ds_uav = nullptr;
665+
652666
m_shader_cache.Close();
653667

654668
#ifdef REPORT_LEAKED_OBJECTS

0 commit comments

Comments
 (0)