1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-04 19:29:15 +01:00

[d3d8] Don't forward D3DRS_LINEPATTERN changes to d3d9

This commit is contained in:
WinterSnowfall 2025-01-10 22:12:21 +02:00 committed by Robin Kertels
parent 20b047600f
commit 0983ab1f39
2 changed files with 9 additions and 8 deletions

View File

@ -1588,12 +1588,11 @@ namespace dxvk {
default: default:
break; break;
// TODO: D3DRS_LINEPATTERN - vkCmdSetLineRasterizationModeEXT // TODO: Implement D3DRS_LINEPATTERN - vkCmdSetLineRasterizationModeEXT
case D3DRS_LINEPATTERN: { case D3DRS_LINEPATTERN:
[[maybe_unused]] Logger::warn("D3D8Device::SetRenderState: Unimplemented render state D3DRS_LINEPATTERN");
D3DLINEPATTERN pattern = bit::cast<D3DLINEPATTERN>(Value); m_linePattern = bit::cast<D3DLINEPATTERN>(Value);
stateChange = false; return D3D_OK;
} break;
// Not supported by D3D8. // Not supported by D3D8.
case D3DRS_ZVISIBLE: case D3DRS_ZVISIBLE:
@ -1653,9 +1652,9 @@ namespace dxvk {
default: default:
break; break;
// TODO: D3DRS_LINEPATTERN
case D3DRS_LINEPATTERN: case D3DRS_LINEPATTERN:
break; *pValue = bit::cast<DWORD>(m_linePattern);
return D3D_OK;
// Not supported by D3D8. // Not supported by D3D8.
case D3DRS_ZVISIBLE: case D3DRS_ZVISIBLE:

View File

@ -426,6 +426,8 @@ namespace dxvk {
D3DPRESENT_PARAMETERS m_presentParams; D3DPRESENT_PARAMETERS m_presentParams;
D3DLINEPATTERN m_linePattern = {};
D3D8StateBlock* m_recorder = nullptr; D3D8StateBlock* m_recorder = nullptr;
DWORD m_recorderToken = 0; DWORD m_recorderToken = 0;
DWORD m_token = 0; DWORD m_token = 0;