1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d9] Relax stretch rect check in D3D8 mode

This commit is contained in:
Robin Kertels 2024-07-08 23:56:09 +02:00 committed by Joshie
parent a7ae5999a9
commit cc87870be1

View File

@ -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;
}