summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2016-09-15 22:47:20 -0700
committerGravatar GitHub2016-09-15 22:47:20 -0700
commit8bf09b5302dc7717477f6c3b5c1f0ea8f2c80717 (patch)
treebb18965bd9603957070cd1a4451d420329dce8e2 /src
parentMerge pull request #2042 from bunnei/dynarmic (diff)
parentVideoCore: Fix dangling lambda context in shader interpreter (diff)
downloadyuzu-8bf09b5302dc7717477f6c3b5c1f0ea8f2c80717.tar.gz
yuzu-8bf09b5302dc7717477f6c3b5c1f0ea8f2c80717.tar.xz
yuzu-8bf09b5302dc7717477f6c3b5c1f0ea8f2c80717.zip
Merge pull request #2080 from yuriks/shader-interp-crash
VideoCore: Fix dangling lambda context in shader interpreter
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/shader_interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp
index b1eadc071..f6c86a759 100644
--- a/src/video_core/shader/shader_interpreter.cpp
+++ b/src/video_core/shader/shader_interpreter.cpp
@@ -77,7 +77,7 @@ void RunInterpreter(const ShaderSetup& setup, UnitState<Debug>& state, unsigned
77 const Instruction instr = { program_code[program_counter] }; 77 const Instruction instr = { program_code[program_counter] };
78 const SwizzlePattern swizzle = { swizzle_data[instr.common.operand_desc_id] }; 78 const SwizzlePattern swizzle = { swizzle_data[instr.common.operand_desc_id] };
79 79
80 static auto call = [&program_counter, &call_stack](UnitState<Debug>& state, u32 offset, u32 num_instructions, 80 auto call = [&program_counter, &call_stack](UnitState<Debug>& state, u32 offset, u32 num_instructions,
81 u32 return_offset, u8 repeat_count, u8 loop_increment) { 81 u32 return_offset, u8 repeat_count, u8 loop_increment) {
82 program_counter = offset - 1; // -1 to make sure when incrementing the PC we end up at the correct offset 82 program_counter = offset - 1; // -1 to make sure when incrementing the PC we end up at the correct offset
83 ASSERT(call_stack.size() < call_stack.capacity()); 83 ASSERT(call_stack.size() < call_stack.capacity());