Display: Record bufw/fmt even when display is off.

These are returned by sceDisplayGetFrameBuf().
This commit is contained in:
Unknown W. Brackets 2016-05-15 15:55:04 -07:00
parent 26e9acee4b
commit 958d7f0944

View file

@ -752,11 +752,9 @@ static u32 sceDisplaySetMode(int displayMode, int displayWidth, int displayHeigh
// Some games (GTA) never call this during gameplay, so bad place to put a framerate counter.
static u32 sceDisplaySetFramebuf(u32 topaddr, int linesize, int pixelformat, int sync) {
FrameBufferState fbstate = {0};
if (topaddr != 0) {
fbstate.topaddr = topaddr;
fbstate.pspFramebufFormat = (GEBufferFormat)pixelformat;
fbstate.pspFramebufLinesize = linesize;
}
fbstate.topaddr = topaddr;
fbstate.pspFramebufFormat = (GEBufferFormat)pixelformat;
fbstate.pspFramebufLinesize = linesize;
hleEatCycles(290);