summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/varying_state.h
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2021-11-19 08:32:53 +0100
committervonchenplus <vonchenplus@gmail.com>2021-11-19 15:53:58 +0100
commit4dd85f86a89338ff84d05a3981c14f6de1be4606 (patch)
treeb2a48b24bf216a325e62f5e363bc98b41de84444 /src/shader_recompiler/varying_state.h
parentMerge pull request #7349 from ameerj/ogl-convert-image (diff)
downloadyuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar
yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.gz
yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.bz2
yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.lz
yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.xz
yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.zst
yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/varying_state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/varying_state.h b/src/shader_recompiler/varying_state.h
index 9d7b24a76..bc4f273c8 100644
--- a/src/shader_recompiler/varying_state.h
+++ b/src/shader_recompiler/varying_state.h
@@ -53,7 +53,8 @@ struct VaryingState {
return AnyComponent(IR::Attribute::ColorFrontDiffuseR) ||
AnyComponent(IR::Attribute::ColorFrontSpecularR) ||
AnyComponent(IR::Attribute::ColorBackDiffuseR) ||
- AnyComponent(IR::Attribute::ColorBackSpecularR) || FixedFunctionTexture();
+ AnyComponent(IR::Attribute::ColorBackSpecularR) || FixedFunctionTexture() ||
+ mask[static_cast<size_t>(IR::Attribute::FogCoordinate)];
}
[[nodiscard]] bool FixedFunctionTexture() const noexcept {