mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Divide projected textures by w if ProjectedCount is 0
This commit is contained in:
parent
ce2f9f35ce
commit
9e26964a96
@ -1809,8 +1809,9 @@ namespace dxvk {
|
|||||||
texcoord, texcoord, texcoordCnt, indices.data());
|
texcoord, texcoord, texcoordCnt, indices.data());
|
||||||
|
|
||||||
uint32_t projIdx = m_fsKey.Stages[i].Contents.ProjectedCount;
|
uint32_t projIdx = m_fsKey.Stages[i].Contents.ProjectedCount;
|
||||||
if (projIdx == 0 || projIdx > texcoordCnt)
|
if (projIdx == 0 || projIdx > texcoordCnt) {
|
||||||
projIdx = texcoordCnt;
|
projIdx = 4; // Always use w if ProjectedCount is 0.
|
||||||
|
}
|
||||||
--projIdx;
|
--projIdx;
|
||||||
|
|
||||||
uint32_t projValue = 0;
|
uint32_t projValue = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user