Skip to content

Commit

Permalink
[d3d9] Only set initial NeedsUpload for D3DPOOL_MANAGED textures
Browse files Browse the repository at this point in the history
  • Loading branch information
K0bin committed Sep 19, 2023
1 parent 41191af commit f2b8e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_common_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace dxvk {
AddDirtyBox(nullptr, i);
}

if (m_desc.Pool != D3DPOOL_DEFAULT) {
if (IsPoolManaged(m_desc.Pool)) {
SetAllNeedUpload();
if (pSharedHandle) {
throw DxvkError("D3D9: Incompatible pool type for texture sharing.");
Expand Down

0 comments on commit f2b8e57

Please sign in to comment.