Skip to content

Commit

Permalink
[d3d9] Forbid StretchRect for src == dst
Browse files Browse the repository at this point in the history
Matches documentation and test behaviour
  • Loading branch information
misyltoad committed Dec 16, 2019
1 parent 35751fd commit 17c9533
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,9 @@ namespace dxvk {
if (unlikely(src == nullptr || dst == nullptr))
return D3DERR_INVALIDCALL;

if (unlikely(src == dst))
return D3DERR_INVALIDCALL;

bool fastPath = true;

D3D9CommonTexture* dstTextureInfo = dst->GetCommonTexture();
Expand Down

0 comments on commit 17c9533

Please sign in to comment.