diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_context.cpp b/src/shader_recompiler/backend/glasm/emit_context.cpp index a9bbb680f..d8451b41f 100644 --- a/src/shader_recompiler/backend/glasm/emit_context.cpp +++ b/src/shader_recompiler/backend/glasm/emit_context.cpp | |||
| @@ -74,6 +74,9 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile | |||
| 74 | InterpDecorator(generic.interpolation), index, attr_stage, index, index); | 74 | InterpDecorator(generic.interpolation), index, attr_stage, index, index); |
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| 77 | if (stage == Stage::Geometry && info.loads_position) { | ||
| 78 | Add("ATTRIB vertex_position=vertex.position;"); | ||
| 79 | } | ||
| 77 | for (size_t index = 0; index < program.info.stores_frag_color.size(); ++index) { | 80 | for (size_t index = 0; index < program.info.stores_frag_color.size(); ++index) { |
| 78 | if (!program.info.stores_frag_color[index]) { | 81 | if (!program.info.stores_frag_color[index]) { |
| 79 | continue; | 82 | continue; |