From cc87870be12f0e885a9f33ba4e977653617f6a31 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 8 Jul 2024 23:56:09 +0200 Subject: [PATCH] [d3d9] Relax stretch rect check in D3D8 mode --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index dbb6fbba1..31afcd45f 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -1264,7 +1264,7 @@ namespace dxvk { // - both destination and source are depth stencil surfaces // - both destination and source are offscreen plain surfaces. // The only way to get a surface with resource type D3DRTYPE_SURFACE without USAGE_RT or USAGE_DS is CreateOffscreenPlainSurface. - if (unlikely(!dstHasRTUsage && (!dstIsSurface || !srcIsSurface || srcHasRTUsage))) + if (unlikely((!dstHasRTUsage && (!dstIsSurface || !srcIsSurface || srcHasRTUsage)) && !m_isD3D8Compatible)) return D3DERR_INVALIDCALL; }