Skip to content

Commit

Permalink
[d3d9] Don't destroy backing buffers of _DEFAULT when used
Browse files Browse the repository at this point in the history
This breaks the dirty locking, and some apps rely on fast access here.
  • Loading branch information
misyltoad committed Oct 2, 2019
1 parent 6ddb561 commit afd549c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4239,8 +4239,8 @@ namespace dxvk {
this->FlushImage(pResource, Subresource);
}

if (pResource->GetMapMode() == D3D9_COMMON_TEXTURE_MAP_MODE_BACKED
&& (!pResource->IsManaged() || m_d3d9Options.evictManagedOnUnlock))
// TODO: Should we do this also for non-offscreen resources?
if (pResource->IsManaged() && !m_d3d9Options.evictManagedOnUnlock)
pResource->DestroyBufferSubresource(Subresource);

if (pResource->IsAutomaticMip())
Expand Down

0 comments on commit afd549c

Please sign in to comment.