Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/d3d9/d3d9_fixed_function.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/d3d9/d3d9_fixed_function.cpp b/src/d3d9/d3d9_fixed_function.cpp
index 5581bfa1..099985f0 100644
--- a/src/d3d9/d3d9_fixed_function.cpp
+++ b/src/d3d9/d3d9_fixed_function.cpp
@@ -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;