mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +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);
|
||||
}
|
||||
|
||||
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();
|
||||
if (pSharedHandle) {
|
||||
throw DxvkError("D3D9: Incompatible pool type for texture sharing.");
|
||||
}
|
||||
}
|
||||
|
||||
m_mapping = pDevice->LookupFormat(m_desc.Format);
|
||||
|
Loading…
x
Reference in New Issue
Block a user