mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 09:18:18 -05:00
video_core: Don't cast away const
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user