mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
d3d12: Properly clean protected page in dtor
This commit is contained in:
parent
c31c0c40a4
commit
97f62571ff
1 changed files with 9 additions and 0 deletions
|
@ -326,6 +326,15 @@ D3D12GSRender::~D3D12GSRender()
|
||||||
{
|
{
|
||||||
getNonCurrentResourceStorage().WaitAndClean();
|
getNonCurrentResourceStorage().WaitAndClean();
|
||||||
|
|
||||||
|
{
|
||||||
|
std::lock_guard<std::mutex> lock(mut);
|
||||||
|
for (auto &protectedTexture : m_protectedTextures)
|
||||||
|
{
|
||||||
|
u32 protectedRangeStart = std::get<1>(protectedTexture), protectedRangeSize = std::get<2>(protectedTexture);
|
||||||
|
vm::page_protect(protectedRangeStart, protectedRangeSize, 0, vm::page_writable, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gfxHandler = [this](u32) { return false; };
|
gfxHandler = [this](u32) { return false; };
|
||||||
m_constantsData.Release();
|
m_constantsData.Release();
|
||||||
m_vertexIndexData.Release();
|
m_vertexIndexData.Release();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue