diff options
author | zawata <zawataza@gmail.com> | 2015-07-18 23:30:55 +0200 |
---|---|---|
committer | zawata <zawataza@gmail.com> | 2015-07-19 13:12:42 +0200 |
commit | 6933a50aeb8ea6a2ff2c4d88068214b934771eab (patch) | |
tree | 9a25136d25dd123811da3bfc7b766c02adbed65c /src | |
parent | Video_Core : Type fixes (diff) | |
download | yuzu-6933a50aeb8ea6a2ff2c4d88068214b934771eab.tar yuzu-6933a50aeb8ea6a2ff2c4d88068214b934771eab.tar.gz yuzu-6933a50aeb8ea6a2ff2c4d88068214b934771eab.tar.bz2 yuzu-6933a50aeb8ea6a2ff2c4d88068214b934771eab.tar.lz yuzu-6933a50aeb8ea6a2ff2c4d88068214b934771eab.tar.xz yuzu-6933a50aeb8ea6a2ff2c4d88068214b934771eab.tar.zst yuzu-6933a50aeb8ea6a2ff2c4d88068214b934771eab.zip |
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) { state.program_counter = &program_code[offset] - 1; // -1 to make sure when incrementing the PC we end up at the correct offset state.call_stack.push({ offset + num_instructions, return_offset, repeat_count, loop_increment, offset }); }; - u32 binary_offset = static_cast<u32>(state.program_counter - program_code.data()); + u32 binary_offset = state.program_counter - program_code.data(); state.debug.max_offset = std::max<u32>(state.debug.max_offset, 1 + binary_offset); |