GPU: Cleanup skip buffer texture draws.

These will be used when a game does multiple transfers from RAM to the
screen, rather than one big one.  Wasn't clearing some state, though.
This commit is contained in:
Unknown W. Brackets 2020-05-11 19:25:33 -07:00
parent 6b251dac4c
commit 884a64b932
2 changed files with 11 additions and 12 deletions

View file

@ -916,7 +916,7 @@ bool TextureCacheCommon::SetOffsetTexture(u32 yOffset) {
u32 texaddr = gstate.getTextureAddress(0);
GETextureFormat fmt = gstate.getTextureFormat();
const u32 bpp = fmt == GE_FORMAT_8888 ? 4 : 2;
const u32 bpp = fmt == GE_TFMT_8888 ? 4 : 2;
const u32 texaddrOffset = yOffset * gstate.getTextureWidth(0) * bpp;
if (!Memory::IsValidAddress(texaddr) || !Memory::IsValidAddress(texaddr + texaddrOffset)) {