rsx: Fix potential out of range methods execution (can result in segfaults)

This commit is contained in:
Eladash 2019-08-17 13:17:37 +03:00 committed by Ani
parent 51188db717
commit 500a4fa2fb

View file

@ -548,7 +548,7 @@ namespace rsx
}
}
const u32 reg = command.reg >> 2;
const u32 reg = (command.reg & 0xffff) >> 2;
const u32 value = command.value;
method_registers.decode(reg, value);