From 6933a50aeb8ea6a2ff2c4d88068214b934771eab Mon Sep 17 00:00:00 2001 From: zawata Date: Sat, 18 Jul 2015 14:30:55 -0700 Subject: Vertex Shader : Undo casting --- src/video_core/vertex_shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index f074a312..87006a83 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(state.program_counter - program_code.data()); + u32 binary_offset = state.program_counter - program_code.data(); state.debug.max_offset = std::max(state.debug.max_offset, 1 + binary_offset); -- cgit v1.2.3