[d3d9] Only set initial NeedsUpload for D3DPOOL_MANAGED textures

This commit is contained in:
Robin Kertels 2023-09-18 19:49:25 +02:00
parent 41191af3b1
commit 244e5e92b7
No known key found for this signature in database
GPG Key ID: 3824904F14D40757
1 changed files with 5 additions and 4 deletions

View File

@ -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);