video_core: Don't cast away const
This commit is contained in:
parent
0c0fb463f0
commit
63e956cc7a
3 changed files with 19 additions and 18 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue