diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_special.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_special.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp index 298881c7b..9b866f889 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_special.cpp | |||
| @@ -17,6 +17,9 @@ std::string_view OutputVertexIndex(EmitContext& ctx) { | |||
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | void InitializeOutputVaryings(EmitContext& ctx) { | 19 | void InitializeOutputVaryings(EmitContext& ctx) { |
| 20 | if (ctx.uses_geometry_passthrough) { | ||
| 21 | return; | ||
| 22 | } | ||
| 20 | if (ctx.stage == Stage::VertexB || ctx.stage == Stage::Geometry) { | 23 | if (ctx.stage == Stage::VertexB || ctx.stage == Stage::Geometry) { |
| 21 | ctx.Add("gl_Position=vec4(0,0,0,1);"); | 24 | ctx.Add("gl_Position=vec4(0,0,0,1);"); |
| 22 | } | 25 | } |