1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed broken DisplayFilter=point setting

See issue #252.
This commit is contained in:
narzoul 2023-11-13 23:44:08 +01:00
parent d823b5acbf
commit 8dff39d1be

View File

@ -339,7 +339,7 @@ namespace D3dDdi
{ 0, sizeof(m_convolutionParams) / sizeof(DeviceState::ShaderConstF) },
reinterpret_cast<DeviceState::ShaderConstF*>(&m_convolutionParams));
UINT filter = (p.support <= 1 && !boolParams.useSrgbRead) ? D3DTEXF_LINEAR : D3DTEXF_POINT;
UINT filter = (p.support > 0 && p.support <= 1 && !boolParams.useSrgbRead) ? D3DTEXF_LINEAR : D3DTEXF_POINT;
if (!boolParams.useSrgbRead && 0 != support.x)
{
filter |= D3DTEXF_SRGBREAD;