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

Fixed handling of invalid alpharef on old Intel drivers

See issue #295.
This commit is contained in:
narzoul 2024-04-19 22:38:04 +02:00
parent 8485017afc
commit 53b0265138

View File

@ -386,6 +386,11 @@ namespace D3dDdi
return value & (D3DWRAPCOORD_0 | D3DWRAPCOORD_1 | D3DWRAPCOORD_2 | D3DWRAPCOORD_3);
}
if (D3DDDIRS_ALPHAREF == state)
{
return value & 0xFF;
}
if (D3DDDIRS_COLORKEYENABLE == state)
{
if (Config::Settings::ColorKeyMethod::NATIVE != m_device.getColorKeyMethod().first)