diff options
| author | 2019-04-05 22:56:34 -0400 | |
|---|---|---|
| committer | 2019-04-05 22:56:58 -0400 | |
| commit | 00e7190e29c0368abb7ef172a73f524d975ed7c9 (patch) | |
| tree | 87126b84efc98a0a6e6d79902282b1841e527562 /src/video_core/macro_interpreter.cpp | |
| parent | video_core/macro_interpreter: Simplify GetRegister() (diff) | |
| download | yuzu-00e7190e29c0368abb7ef172a73f524d975ed7c9.tar.gz yuzu-00e7190e29c0368abb7ef172a73f524d975ed7c9.tar.xz yuzu-00e7190e29c0368abb7ef172a73f524d975ed7c9.zip | |
video_core/macro_interpreter: Remove assertion within FetchParameter()
We can just use .at(), which essentially does the same thing, but with
less code.
Diffstat (limited to 'src/video_core/macro_interpreter.cpp')
| -rw-r--r-- | src/video_core/macro_interpreter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/macro_interpreter.cpp b/src/video_core/macro_interpreter.cpp index 4c4e8d603..524d9ea5a 100644 --- a/src/video_core/macro_interpreter.cpp +++ b/src/video_core/macro_interpreter.cpp | |||
| @@ -223,8 +223,7 @@ void MacroInterpreter::ProcessResult(ResultOperation operation, u32 reg, u32 res | |||
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | u32 MacroInterpreter::FetchParameter() { | 225 | u32 MacroInterpreter::FetchParameter() { |
| 226 | ASSERT(next_parameter_index < parameters.size()); | 226 | return parameters.at(next_parameter_index++); |
| 227 | return parameters[next_parameter_index++]; | ||
| 228 | } | 227 | } |
| 229 | 228 | ||
| 230 | u32 MacroInterpreter::GetRegister(u32 register_id) const { | 229 | u32 MacroInterpreter::GetRegister(u32 register_id) const { |