[d3d9] Divide projected textures by w if ProjectedCount is 0

This commit is contained in:
Robin Kertels 2023-08-23 18:20:14 +02:00 committed by Joshie
parent ce2f9f35ce
commit 9e26964a96
1 changed files with 3 additions and 2 deletions

View File

@ -1809,8 +1809,9 @@ namespace dxvk {
texcoord, texcoord, texcoordCnt, indices.data());
uint32_t projIdx = m_fsKey.Stages[i].Contents.ProjectedCount;
if (projIdx == 0 || projIdx > texcoordCnt)
projIdx = texcoordCnt;
if (projIdx == 0 || projIdx > texcoordCnt) {
projIdx = 4; // Always use w if ProjectedCount is 0.
}
--projIdx;
uint32_t projValue = 0;