summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_interpreter.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-03-17 06:51:09 +0100
committerLioncash <mathew1800@gmail.com>2016-03-17 07:01:38 +0100
commit63e956cc7a57fe05aa2e422762349bee253715fb (patch)
treebf10e1db6d2232dd0584b70f342dc173dd730bb1 /src/video_core/shader/shader_interpreter.cpp
parentMerge pull request #1537 from lioncash/const (diff)
downloadyuzu-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/shader_interpreter.cpp')
-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 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);