hrydgard/ppsspp — pull request #6315 by unknownbrackets (2014-06-14 09:00:26+00:00)
Title: Avoid shrinking buffer w/h in throughmode

Since they could overdraw and we already scissor.

Fixes #6312. Since these are throughmode anyway, it shouldn't be risky, and it won't grow buffers every - only not shrink them.

For example, there is a 480x272 buffer that Dragon Ball Z reuses at 64x64 for shadows. It only uses throughmode for the shadows, so while 64x64 is technically correct, they aren't actually clipped to that since it's only by region (not used in throughmode I think?) anyway. With this change it treats them as 480x272, but this causes no glitches.

The important thing is that we shouldn't overestimate the size and blit wrong (unless we previously detected the height incorrectly.)

-[Unknown]