diff options
author | Lioncash <mathew1800@gmail.com> | 2016-03-17 01:51:09 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2016-03-17 02:01:38 -0400 |
commit | 63e956cc7a57fe05aa2e422762349bee253715fb (patch) | |
tree | bf10e1db6d2232dd0584b70f342dc173dd730bb1 /src/video_core/shader | |
parent | 0c0fb463f0bf8c9dd179e44751b0a56b22cc6535 (diff) |
video_core: Don't cast away const
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); |