mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-06 00:59:18 +00:00
d3d12: Properly clean protected page in dtor
This commit is contained in:
parent
c31c0c40a4
commit
97f62571ff
@ -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…
Reference in New Issue
Block a user