diff options
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/shader/control_flow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp index 7b424d65d..bdf9d4dd4 100644 --- a/src/video_core/shader/control_flow.cpp +++ b/src/video_core/shader/control_flow.cpp | |||
| @@ -139,6 +139,8 @@ std::pair<ParseResult, ParseInfo> ParseCode(CFGRebuildState& state, u32 address) | |||
| 139 | 139 | ||
| 140 | while (true) { | 140 | while (true) { |
| 141 | if (offset >= end_address) { | 141 | if (offset >= end_address) { |
| 142 | // ASSERT_OR_EXECUTE can't be used, as it ignores the break | ||
| 143 | ASSERT_MSG(false, "Shader passed the current limit!"); | ||
| 142 | parse_info.branch_info.address = exit_branch; | 144 | parse_info.branch_info.address = exit_branch; |
| 143 | parse_info.branch_info.ignore = false; | 145 | parse_info.branch_info.ignore = false; |
| 144 | break; | 146 | break; |