diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/ast.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/video_core/shader/ast.h b/src/video_core/shader/ast.h index 5a77c60cb..d7bf11821 100644 --- a/src/video_core/shader/ast.h +++ b/src/video_core/shader/ast.h | |||
| @@ -340,20 +340,20 @@ public: | |||
| 340 | 340 | ||
| 341 | bool IsFullyDecompiled() const { | 341 | bool IsFullyDecompiled() const { |
| 342 | if (full_decompile) { | 342 | if (full_decompile) { |
| 343 | return gotos.size() == 0; | 343 | return gotos.empty(); |
| 344 | } else { | 344 | } |
| 345 | for (ASTNode goto_node : gotos) { | 345 | |
| 346 | auto label_index = goto_node->GetGotoLabel(); | 346 | for (ASTNode goto_node : gotos) { |
| 347 | if (!label_index) { | 347 | auto label_index = goto_node->GetGotoLabel(); |
| 348 | return false; | 348 | if (!label_index) { |
| 349 | } | 349 | return false; |
| 350 | ASTNode glabel = labels[*label_index]; | 350 | } |
| 351 | if (IsBackwardsJump(goto_node, glabel)) { | 351 | ASTNode glabel = labels[*label_index]; |
| 352 | return false; | 352 | if (IsBackwardsJump(goto_node, glabel)) { |
| 353 | } | 353 | return false; |
| 354 | } | 354 | } |
| 355 | return true; | ||
| 356 | } | 355 | } |
| 356 | return true; | ||
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | ASTNode GetProgram() const { | 359 | ASTNode GetProgram() const { |