Skip to content

Commit

Permalink
Set the correct value of 0.0f for D3DRS_POINTSIZE_MIN
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSnowfall committed Oct 10, 2024
1 parent 61be8d5 commit 272cf70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/d3d8to9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Direct3DDevice8::Direct3DDevice8(Direct3D8 *d3d, IDirect3DDevice9 *ProxyInterfac
{
ProxyAddressLookupTable = new AddressLookupTable(this);
PaletteFlag = SupportsPalettes();

ProxyInterface->SetRenderState(D3DRS_POINTSIZE_MIN, (DWORD) 0.0f);
}
Direct3DDevice8::~Direct3DDevice8()
{
Expand Down Expand Up @@ -224,7 +226,14 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::Reset(D3DPRESENT_PARAMETERS8 *pPresen
}
}

return ProxyInterface->Reset(&PresentParams);
HRESULT hr = ProxyInterface->Reset(&PresentParams);

if (SUCCEEDED(hr))
{
ProxyInterface->SetRenderState(D3DRS_POINTSIZE_MIN, (DWORD) 0.0f);
}

return hr;
}
HRESULT STDMETHODCALLTYPE Direct3DDevice8::Present(const RECT *pSourceRect, const RECT *pDestRect, HWND hDestWindowOverride, const RGNDATA *pDirtyRegion)
{
Expand Down

0 comments on commit 272cf70

Please sign in to comment.