Skip to content

Commit

Permalink
[d3d9] FF: Fix using wrong texCoord mask
Browse files Browse the repository at this point in the history
  • Loading branch information
K0bin authored and misyltoad committed Jun 4, 2023
1 parent c585ea2 commit 52f04ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_fixed_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ namespace dxvk {
for (uint32_t i = 0; i < caps::TextureStageCount; i++) {
uint32_t inputIndex = (m_vsKey.Data.Contents.TexcoordIndices >> (i * 3)) & 0b111;
uint32_t inputFlags = (m_vsKey.Data.Contents.TexcoordFlags >> (i * 3)) & 0b111;
uint32_t texcoordCount = (m_vsKey.Data.Contents.TexcoordDeclMask >> (i * 3)) & 0b111;
uint32_t texcoordCount = (m_vsKey.Data.Contents.TexcoordDeclMask >> (inputIndex * 3)) & 0b111;

uint32_t transformed;

Expand Down

0 comments on commit 52f04ca

Please sign in to comment.