Skip to content

Commit 7fee162

Browse files
committed
[d3d9] Allow stretching to depth textures
1 parent 7f2d109 commit 7fee162

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/d3d9/d3d9_device.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#pragma fenv_access (on)
3232
#endif
3333

34+
#define D3D9_EXTENDED
35+
3436
namespace dxvk {
3537

3638
D3D9DeviceEx::D3D9DeviceEx(
@@ -1335,8 +1337,10 @@ namespace dxvk {
13351337
if (unlikely(pSourceSurface == pDestSurface))
13361338
return D3DERR_INVALIDCALL;
13371339

1340+
#if !defined( D3D9_EXTENDED )
13381341
if (unlikely(dstIsDS))
13391342
return D3DERR_INVALIDCALL;
1343+
#endif
13401344

13411345
// The docs say that stretching is only allowed if the destination is either a render target surface or a render target texture.
13421346
// However in practice, using an offscreen plain surface in D3DPOOL_DEFAULT as the destination works fine.

0 commit comments

Comments
 (0)