mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-22 07:54:15 +01:00
[d3d9] Only set initial NeedsUpload for D3DPOOL_MANAGED textures
This commit is contained in:
parent
0632da1935
commit
494f7fd38d
@ -31,11 +31,12 @@ namespace dxvk {
|
|||||||
AddDirtyBox(nullptr, i);
|
AddDirtyBox(nullptr, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_desc.Pool != D3DPOOL_DEFAULT) {
|
if (m_desc.Pool != D3DPOOL_DEFAULT && pSharedHandle) {
|
||||||
|
throw DxvkError("D3D9: Incompatible pool type for texture sharing.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IsPoolManaged(m_desc.Pool)) {
|
||||||
SetAllNeedUpload();
|
SetAllNeedUpload();
|
||||||
if (pSharedHandle) {
|
|
||||||
throw DxvkError("D3D9: Incompatible pool type for texture sharing.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_mapping = pDevice->LookupFormat(m_desc.Format);
|
m_mapping = pDevice->LookupFormat(m_desc.Format);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user