From 6b98489dfb66d6fb3839a2ae12044ea8596b742e Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 8 Jul 2015 23:23:30 -0400 Subject: [PATCH] fixup! vertex_shader: Optimized SIMD-based vertex shader interpreter for x86 systems. --- src/video_core/vertex_shader_simd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/vertex_shader_simd.cpp b/src/video_core/vertex_shader_simd.cpp index 04672946d..5c46170da 100644 --- a/src/video_core/vertex_shader_simd.cpp +++ b/src/video_core/vertex_shader_simd.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include #include #include @@ -221,7 +222,7 @@ VertexShader::OutputVertex RunShader(CoreState& state, const VertexShader::Input while (true) { if (!state.call_stack.empty()) { auto& top = state.call_stack.back(); - if (&program_code[state.pc] - program_code.data() == top.final_address) { + if (state.pc == top.final_address) { state.address_offset.raw_i.m128i_i32[3] += top.loop_increment; if (top.repeat_counter-- == 0) {