Another 'Check if the number is within range before accessing' array change

This commit is contained in:
lioncash 2013-02-04 09:36:58 -05:00
parent fddae9a051
commit 5acce242c1

View File

@ -978,7 +978,7 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) {
{
int num = gstate.boneMatrixNumber & 0x7F;
float newVal = getFloat24(data);
if (newVal != gstate.boneMatrix[num] && num < 96) {
if (num < 96 && newVal != gstate.boneMatrix[num]) {
Flush();
gstate.boneMatrix[num] = newVal;
shaderManager_->DirtyUniform(DIRTY_BONEMATRIX0 << (num / 12));