From 4a55047ddeefd2fef5bc397acc65ad343d71150f Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Fri, 26 May 2023 03:46:15 +0200 Subject: [PATCH] [d3d9] Forbid disabling SWVP on a pure SWVP device --- src/d3d9/d3d9_device.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 71136dbd0..e821e19d9 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -2463,6 +2463,9 @@ namespace dxvk { if (bSoftware && !CanSWVP()) return D3DERR_INVALIDCALL; + if (!bSoftware && (m_behaviorFlags & D3DCREATE_SOFTWARE_VERTEXPROCESSING)) + return D3DERR_INVALIDCALL; + m_isSWVP = bSoftware; return D3D_OK;