mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Set D3DRS_POINTSIZE_MIN to 0.0f in D3D8 compatibility mode
This commit is contained in:
parent
329d9a0bb2
commit
9d19fa18a7
@ -53,6 +53,9 @@ namespace dxvk {
|
||||
|
||||
m_bridge->SetAPIName("D3D8");
|
||||
m_bridge->SetD3D8CompatibilityMode(true);
|
||||
// The default value of D3DRS_POINTSIZE_MIN in D3D8 is 0.0f,
|
||||
// whereas it's initialized to 1.0f in D3D9 by default
|
||||
GetD3D9()->SetRenderState(d3d9::D3DRS_POINTSIZE_MIN, bit::cast<DWORD>(0.0f));
|
||||
|
||||
ResetState();
|
||||
RecreateBackBuffersAndAutoDepthStencil();
|
||||
|
@ -7909,7 +7909,7 @@ namespace dxvk {
|
||||
rs[D3DRS_POINTSCALE_B] = bit::cast<DWORD>(0.0f);
|
||||
rs[D3DRS_POINTSCALE_C] = bit::cast<DWORD>(0.0f);
|
||||
rs[D3DRS_POINTSIZE] = bit::cast<DWORD>(1.0f);
|
||||
rs[D3DRS_POINTSIZE_MIN] = bit::cast<DWORD>(1.0f);
|
||||
rs[D3DRS_POINTSIZE_MIN] = m_isD3D8Compatible ? bit::cast<DWORD>(0.0f) : bit::cast<DWORD>(1.0f);
|
||||
rs[D3DRS_POINTSIZE_MAX] = bit::cast<DWORD>(limits.pointSizeRange[1]);
|
||||
UpdatePushConstant<D3D9RenderStateItem::PointSize>();
|
||||
UpdatePushConstant<D3D9RenderStateItem::PointSizeMin>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user