mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Fixed an issue with D3DDDITSS_TEXTURECOLORKEYVAL optimization on NVIDIA drivers
See issue #80
This commit is contained in:
parent
f6ed6bcefa
commit
4370990dfb
@ -90,6 +90,7 @@ namespace D3dDdi
|
|||||||
if (SUCCEEDED(result))
|
if (SUCCEEDED(result))
|
||||||
{
|
{
|
||||||
m_textures[stage] = texture;
|
m_textures[stage] = texture;
|
||||||
|
m_textureStageState[stage][D3DDDITSS_DISABLETEXTURECOLORKEY] = 0xBAADBAAD;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -98,7 +99,7 @@ namespace D3dDdi
|
|||||||
{
|
{
|
||||||
if (D3DDDITSS_TEXTURECOLORKEYVAL == data->State)
|
if (D3DDDITSS_TEXTURECOLORKEYVAL == data->State)
|
||||||
{
|
{
|
||||||
if (1 == m_textureStageState[data->Stage][D3DDDITSS_DISABLETEXTURECOLORKEY])
|
if (0 != m_textureStageState[data->Stage][D3DDDITSS_DISABLETEXTURECOLORKEY])
|
||||||
{
|
{
|
||||||
m_textureStageState[data->Stage][D3DDDITSS_DISABLETEXTURECOLORKEY] = 0;
|
m_textureStageState[data->Stage][D3DDDITSS_DISABLETEXTURECOLORKEY] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user