summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-08-23 14:14:34 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-08-25 22:03:19 +0200
commit697b50c3ff1b0d179c5862efa56cb19fa640824c (patch)
tree5fc892f9e922daae01366120874bfb8faf754574 /src
parentMath: Warning fixes. (diff)
downloadyuzu-697b50c3ff1b0d179c5862efa56cb19fa640824c.tar
yuzu-697b50c3ff1b0d179c5862efa56cb19fa640824c.tar.gz
yuzu-697b50c3ff1b0d179c5862efa56cb19fa640824c.tar.bz2
yuzu-697b50c3ff1b0d179c5862efa56cb19fa640824c.tar.lz
yuzu-697b50c3ff1b0d179c5862efa56cb19fa640824c.tar.xz
yuzu-697b50c3ff1b0d179c5862efa56cb19fa640824c.tar.zst
yuzu-697b50c3ff1b0d179c5862efa56cb19fa640824c.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vertex_shader.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index cdecbff3c..db8244317 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -191,8 +191,9 @@ static void ProcessShaderCode(VertexShaderState& state) {
if (*state.call_stack_pointer == VertexShaderState::INVALID_ADDRESS) {
exit_loop = true;
} else {
- state.program_counter = &shader_memory[*state.call_stack_pointer--];
- *state.call_stack_pointer = VertexShaderState::INVALID_ADDRESS;
+ // Jump back to call stack position, invalidate call stack entry, move up call stack pointer
+ state.program_counter = &shader_memory[*state.call_stack_pointer];
+ *state.call_stack_pointer-- = VertexShaderState::INVALID_ADDRESS;
}
break;