mirror of https://github.com/doitsujin/dxvk
[d3d9] Only set initial NeedsUpload for D3DPOOL_MANAGED textures
This commit is contained in:
parent
41191af3b1
commit
244e5e92b7
|
@ -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…
Reference in New Issue