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

Fixed ColorKeyMethod=alphatest in Carnivores

This commit is contained in:
narzoul 2024-06-29 13:23:38 +02:00
parent eeb0682ced
commit 60476f44ed
2 changed files with 5 additions and 2 deletions

View File

@ -778,7 +778,11 @@ namespace D3dDdi
if (resource)
{
resource->updatePalettizedTexture(stage);
resource->prepareForTextureRead(stage);
if (resource->prepareForTextureRead(stage) != m_current.textures[stage])
{
m_changedStates |= CS_TEXTURE_STAGE;
m_maxChangedTextureStage = std::max(stage, m_maxChangedTextureStage);
}
}
}
}

View File

@ -1272,7 +1272,6 @@ namespace D3dDdi
{
return defaultResource;
}
m_colorKey = appState.textureStageState[stage][D3DDDITSS_TEXTURECOLORKEYVAL] + 1;
}
if (!m_isColorKeyedSurfaceUpToDate ||