[d3d9] Forbid disabling SWVP on a pure SWVP device

This commit is contained in:
Robin Kertels
2023-05-26 03:46:15 +02:00
committed by Joshie
parent 3fddc364ee
commit 4a55047dde

View File

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