Merge pull request #10450 from unknownbrackets/bone-matrix

GPU: Avoid memory corruption on bone matrix > 96
This commit is contained in:
Henrik Rydgård 2017-12-26 10:36:16 +01:00 committed by GitHub
commit 43166c47e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1739,7 +1739,8 @@ void GPUCommon::Execute_BoneMtxNum(u32 op, u32 diff) {
const int end = 12 * 8 - (op & 0x7F);
int i = 0;
bool fastLoad = !debugRecording_;
// TODO: Validate what should happen when explicitly setting num to 96 or higher.
bool fastLoad = !debugRecording_ && end > 0;
if (currentList->pc < currentList->stall && currentList->pc + end * 4 >= currentList->stall) {
fastLoad = false;
}