summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-07-17 22:16:23 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:40 +0200
commit56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb (patch)
tree4b6a00e1143af807cec12f1b9202e73b0d9ac7aa /src/shader_recompiler/backend
parentgl_device: Simplify GLASM setting logic (diff)
downloadyuzu-56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb.tar
yuzu-56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb.tar.gz
yuzu-56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb.tar.bz2
yuzu-56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb.tar.lz
yuzu-56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb.tar.xz
yuzu-56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb.tar.zst
yuzu-56478bc9ac5a01ca5c73ba72faae1a5eaae0f8cb.zip
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
index 756de0a27..fb8c02a77 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
@@ -300,7 +300,7 @@ Id EmitGetAttribute(EmitContext& ctx, IR::Attribute attr, Id vertex) {
const std::optional<AttrInfo> type{AttrTypes(ctx, index)};
if (!type) {
// Attribute is disabled
- return ctx.Const(0.0f);
+ return ctx.Const(element == 3 ? 1.0f : 0.0f);
}
if (!ctx.runtime_info.previous_stage_stores.Generic(index, element)) {
// Varying component is not written