mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-29 19:30:48 +00:00
Another 'Check if the number is within range before accessing' array change
This commit is contained in:
parent
fddae9a051
commit
5acce242c1
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user