mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Fixed sysmem/vidmem synchronization issues on integrated AMD GPUs
This commit is contained in:
parent
4ca4e5d6ca
commit
b8bff744e5
@ -336,6 +336,19 @@ namespace D3dDdi
|
|||||||
{
|
{
|
||||||
LOG_ONCE("ERROR: Resource::copySubResource failed: " << Compat::hex(result));
|
LOG_ONCE("ERROR: Resource::copySubResource failed: " << Compat::hex(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
D3DDDIARG_LOCK lock = {};
|
||||||
|
lock.hResource = m_lockResource.get();
|
||||||
|
lock.SubResourceIndex = subResourceIndex;
|
||||||
|
lock.Flags.NotifyOnly = 1;
|
||||||
|
m_device.getOrigVtable().pfnLock(m_device, &lock);
|
||||||
|
|
||||||
|
D3DDDIARG_UNLOCK unlock = {};
|
||||||
|
unlock.hResource = m_lockResource.get();
|
||||||
|
unlock.SubResourceIndex = subResourceIndex;
|
||||||
|
unlock.Flags.NotifyOnly = 1;
|
||||||
|
m_device.getOrigVtable().pfnUnlock(m_device, &unlock);
|
||||||
|
|
||||||
return LOG_RESULT(result);
|
return LOG_RESULT(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user