Skip to content

Commit

Permalink
[d3d9] Fix FlatShade permutation always being used
Browse files Browse the repository at this point in the history
Oops! Josh did a bad typo =(
Possibly affects doitsujin#408 doitsujin#409 doitsujin#410 doitsujin#411
  • Loading branch information
misyltoad committed Dec 16, 2019
1 parent 6c73715 commit df9ca51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ namespace dxvk {
}

inline D3D9ShaderPermutation GetPixelShaderPermutation() {
if (unlikely(m_state.renderStates[D3DRS_SHADEMODE]))
if (unlikely(m_state.renderStates[D3DRS_SHADEMODE] == D3DSHADE_FLAT))
return D3D9ShaderPermutations::FlatShade;

return D3D9ShaderPermutations::None;
Expand Down

0 comments on commit df9ca51

Please sign in to comment.