mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-04 10:29:15 +01:00
[d3d8] Don't forward D3DRS_PATCHSEGMENTS changes to d3d9
This commit is contained in:
parent
0983ab1f39
commit
470764e24c
@ -1620,10 +1620,11 @@ namespace dxvk {
|
|||||||
|
|
||||||
return GetD3D9()->SetSoftwareVertexProcessing(Value);
|
return GetD3D9()->SetSoftwareVertexProcessing(Value);
|
||||||
|
|
||||||
// TODO: D3DRS_PATCHSEGMENTS
|
// TODO: Implement D3DRS_PATCHSEGMENTS
|
||||||
case D3DRS_PATCHSEGMENTS:
|
case D3DRS_PATCHSEGMENTS:
|
||||||
stateChange = false;
|
Logger::warn("D3D8Device::SetRenderState: Unimplemented render state D3DRS_PATCHSEGMENTS");
|
||||||
break;
|
m_patchSegments = bit::cast<float>(Value);
|
||||||
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stateChange) {
|
if (stateChange) {
|
||||||
@ -1674,9 +1675,9 @@ namespace dxvk {
|
|||||||
case D3DRS_SOFTWAREVERTEXPROCESSING:
|
case D3DRS_SOFTWAREVERTEXPROCESSING:
|
||||||
return GetD3D9()->GetSoftwareVertexProcessing();
|
return GetD3D9()->GetSoftwareVertexProcessing();
|
||||||
|
|
||||||
// TODO: D3DRS_PATCHSEGMENTS
|
|
||||||
case D3DRS_PATCHSEGMENTS:
|
case D3DRS_PATCHSEGMENTS:
|
||||||
break;
|
*pValue = bit::cast<DWORD>(m_patchSegments);
|
||||||
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This call will never fail
|
// This call will never fail
|
||||||
|
@ -425,8 +425,11 @@ namespace dxvk {
|
|||||||
Com<D3D8Interface> m_parent;
|
Com<D3D8Interface> m_parent;
|
||||||
|
|
||||||
D3DPRESENT_PARAMETERS m_presentParams;
|
D3DPRESENT_PARAMETERS m_presentParams;
|
||||||
|
|
||||||
D3DLINEPATTERN m_linePattern = {};
|
// Value of D3DRS_LINEPATTERN
|
||||||
|
D3DLINEPATTERN m_linePattern = {};
|
||||||
|
// Value of D3DRS_PATCHSEGMENTS
|
||||||
|
float m_patchSegments = 1.0f;
|
||||||
|
|
||||||
D3D8StateBlock* m_recorder = nullptr;
|
D3D8StateBlock* m_recorder = nullptr;
|
||||||
DWORD m_recorderToken = 0;
|
DWORD m_recorderToken = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user