diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index 01403ca17..2375b7a06 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp | |||
| @@ -150,7 +150,7 @@ void SetupOutPerVertex(Stage stage, const Info& info, std::string& header) { | |||
| 150 | if (info.stores_clip_distance) { | 150 | if (info.stores_clip_distance) { |
| 151 | header += "float gl_ClipDistance[];"; | 151 | header += "float gl_ClipDistance[];"; |
| 152 | } | 152 | } |
| 153 | header += "};"; | 153 | header += "};\n"; |
| 154 | } | 154 | } |
| 155 | } // namespace | 155 | } // namespace |
| 156 | 156 | ||
| @@ -223,6 +223,7 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile | |||
| 223 | header += declaration; | 223 | header += declaration; |
| 224 | } | 224 | } |
| 225 | } | 225 | } |
| 226 | header += "\n"; | ||
| 226 | DefineConstantBuffers(bindings); | 227 | DefineConstantBuffers(bindings); |
| 227 | DefineStorageBuffers(bindings); | 228 | DefineStorageBuffers(bindings); |
| 228 | SetupImages(bindings); | 229 | SetupImages(bindings); |