Permalink
Browse files

Merge pull request #10450 from unknownbrackets/bone-matrix

GPU: Avoid memory corruption on bone matrix > 96
  • Loading branch information...
hrydgard committed Dec 26, 2017
2 parents baa4cea + 93a7126 commit 43166c47e6def48d4449007df6627921faab825c
Showing with 2 additions and 1 deletion.
  1. +2 −1 GPU/GPUCommon.cpp
View
@@ -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;
}

0 comments on commit 43166c4

Please sign in to comment.