diff options
author | Lioncash <mathew1800@gmail.com> | 2016-03-17 06:51:09 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2016-03-17 07:01:38 +0100 |
commit | 63e956cc7a57fe05aa2e422762349bee253715fb (patch) | |
tree | bf10e1db6d2232dd0584b70f342dc173dd730bb1 /src/video_core/shader | |
parent | Merge pull request #1537 from lioncash/const (diff) | |
download | yuzu-63e956cc7a57fe05aa2e422762349bee253715fb.tar yuzu-63e956cc7a57fe05aa2e422762349bee253715fb.tar.gz yuzu-63e956cc7a57fe05aa2e422762349bee253715fb.tar.bz2 yuzu-63e956cc7a57fe05aa2e422762349bee253715fb.tar.lz yuzu-63e956cc7a57fe05aa2e422762349bee253715fb.tar.xz yuzu-63e956cc7a57fe05aa2e422762349bee253715fb.tar.zst yuzu-63e956cc7a57fe05aa2e422762349bee253715fb.zip |
Diffstat (limited to 'src/video_core/shader')
-rw-r--r-- | src/video_core/shader/shader_interpreter.cpp | 2 |
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 295a2466b..02e1a1cb1 100644 --- a/src/video_core/shader/shader_interpreter.cpp +++ b/src/video_core/shader/shader_interpreter.cpp @@ -409,7 +409,7 @@ void RunInterpreter(UnitState<Debug>& state) { { if ((instr.opcode.Value().EffectiveOpCode() == OpCode::Id::MAD) || (instr.opcode.Value().EffectiveOpCode() == OpCode::Id::MADI)) { - const SwizzlePattern& swizzle = *(SwizzlePattern*)&swizzle_data[instr.mad.operand_desc_id]; + const SwizzlePattern& swizzle = *reinterpret_cast<const SwizzlePattern*>(&swizzle_data[instr.mad.operand_desc_id]); bool is_inverted = (instr.opcode.Value().EffectiveOpCode() == OpCode::Id::MADI); |