Merge pull request #598 from lioncash/master

Found another check that should be before the other one.
This commit is contained in:
Henrik Rydgård 2013-02-04 08:17:59 -08:00
commit edb9cf5c71

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));