mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Fixed occasional deadlocks when alt-tabbing
This commit is contained in:
parent
d6f07bac76
commit
0801a74af5
@ -947,7 +947,6 @@ namespace D3dDdi
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_lockData[subResourceIndex].isVidMemUpToDate = true;
|
|
||||||
|
|
||||||
if (m_lockData[subResourceIndex].isMsaaUpToDate || m_lockData[subResourceIndex].isMsaaResolvedUpToDate)
|
if (m_lockData[subResourceIndex].isMsaaUpToDate || m_lockData[subResourceIndex].isMsaaResolvedUpToDate)
|
||||||
{
|
{
|
||||||
@ -972,6 +971,7 @@ namespace D3dDdi
|
|||||||
blt.DstRect = getRect(subResourceIndex);
|
blt.DstRect = getRect(subResourceIndex);
|
||||||
shaderBlt(blt, *this, *m_msaaResolvedSurface.resource);
|
shaderBlt(blt, *this, *m_msaaResolvedSurface.resource);
|
||||||
}
|
}
|
||||||
|
m_lockData[subResourceIndex].isVidMemUpToDate = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1014,6 +1014,7 @@ namespace D3dDdi
|
|||||||
notifyLock(subResourceIndex);
|
notifyLock(subResourceIndex);
|
||||||
m_lockData[subResourceIndex].isRefLocked = false;
|
m_lockData[subResourceIndex].isRefLocked = false;
|
||||||
}
|
}
|
||||||
|
m_lockData[subResourceIndex].isVidMemUpToDate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT Resource::lock(D3DDDIARG_LOCK& data)
|
HRESULT Resource::lock(D3DDDIARG_LOCK& data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user