mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Check if num is within range *before* accessing the array.
This commit is contained in:
parent
025a1351b4
commit
3221438de4
1 changed files with 1 additions and 1 deletions
|
@ -960,7 +960,7 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) {
|
|||
{
|
||||
int num = gstate.texmtxnum & 0xF;
|
||||
float newVal = getFloat24(data);
|
||||
if (newVal != gstate.tgenMatrix[num] && num < 12) {
|
||||
if (num < 12 && newVal != gstate.tgenMatrix[num]) {
|
||||
Flush();
|
||||
gstate.tgenMatrix[num] = newVal;
|
||||
shaderManager_->DirtyUniform(DIRTY_TEXMATRIX);
|
||||
|
|
Loading…
Add table
Reference in a new issue