From 088915e24c72299ca93ab20e5e084f5b9f413a96 Mon Sep 17 00:00:00 2001 From: WinterSnowfall Date: Fri, 10 Jan 2025 22:44:38 +0200 Subject: [PATCH] [d3d8] Don't forward D3DRS_ZVISIBLE changes to d3d9 --- src/d3d8/d3d8_device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/d3d8/d3d8_device.cpp b/src/d3d8/d3d8_device.cpp index b1d2d2225..5ca6ab599 100644 --- a/src/d3d8/d3d8_device.cpp +++ b/src/d3d8/d3d8_device.cpp @@ -1596,8 +1596,7 @@ namespace dxvk { // Not supported by D3D8. case D3DRS_ZVISIBLE: - stateChange = false; - break; + return D3D_OK; // TODO: Not implemented by D9VK. Try anyway. case D3DRS_EDGEANTIALIAS: @@ -1659,7 +1658,8 @@ namespace dxvk { // Not supported by D3D8. case D3DRS_ZVISIBLE: - break; + *pValue = 0; + return D3D_OK; case D3DRS_EDGEANTIALIAS: State9 = d3d9::D3DRS_ANTIALIASEDLINEENABLE;