diff options
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index 278b26b50..f848c6175 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -262,10 +262,8 @@ void EmitContext::DefineTextures(const Info& info, u32& binding) { | |||
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | void EmitContext::DefineLabels(IR::Program& program) { | 264 | void EmitContext::DefineLabels(IR::Program& program) { |
| 265 | for (const IR::Function& function : program.functions) { | 265 | for (IR::Block* const block : program.blocks) { |
| 266 | for (IR::Block* const block : function.blocks) { | 266 | block->SetDefinition(OpLabel()); |
| 267 | block->SetDefinition(OpLabel()); | ||
| 268 | } | ||
| 269 | } | 267 | } |
| 270 | } | 268 | } |
| 271 | 269 | ||