Gif: Don't set state on NOP packet. Fixes #2277

This commit is contained in:
refractionpcsx2 2018-01-26 23:02:23 +00:00
parent 24b83fd96c
commit f7c0a910f8
1 changed files with 4 additions and 1 deletions

View File

@ -289,6 +289,9 @@ struct Gif_Path {
} }
gifTag.setTag(&buffer[curOffset], 1); gifTag.setTag(&buffer[curOffset], 1);
//Don't set state to PACKED if it is a NOP packet
if(gifTag.tag.NLOOP > 0)
state = (GIF_PATH_STATE)(gifTag.tag.FLG + 1); state = (GIF_PATH_STATE)(gifTag.tag.FLG + 1);
// We don't have enough data for a complete GS packet // We don't have enough data for a complete GS packet