diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vertex_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index f074a3128..87006a832 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp | |||
| @@ -96,7 +96,7 @@ static void ProcessShaderCode(VertexShaderState& state) { | |||
| 96 | state.program_counter = &program_code[offset] - 1; // -1 to make sure when incrementing the PC we end up at the correct offset | 96 | state.program_counter = &program_code[offset] - 1; // -1 to make sure when incrementing the PC we end up at the correct offset |
| 97 | state.call_stack.push({ offset + num_instructions, return_offset, repeat_count, loop_increment, offset }); | 97 | state.call_stack.push({ offset + num_instructions, return_offset, repeat_count, loop_increment, offset }); |
| 98 | }; | 98 | }; |
| 99 | u32 binary_offset = static_cast<u32>(state.program_counter - program_code.data()); | 99 | u32 binary_offset = state.program_counter - program_code.data(); |
| 100 | 100 | ||
| 101 | state.debug.max_offset = std::max<u32>(state.debug.max_offset, 1 + binary_offset); | 101 | state.debug.max_offset = std::max<u32>(state.debug.max_offset, 1 + binary_offset); |
| 102 | 102 | ||