mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Merge pull request #8452 from unknownbrackets/gpu-mpeg
Resize FBOs when video width is larger
This commit is contained in:
commit
07a16705d8
@ -497,7 +497,14 @@ void FramebufferManagerCommon::NotifyVideoUpload(u32 addr, int size, int width,
|
||||
vfb->last_frame_render = gpuStats.numFlips;
|
||||
}
|
||||
|
||||
// TODO: Check width?
|
||||
if (vfb->fb_stride < width) {
|
||||
DEBUG_LOG(ME, "Changing stride for %08x from %d to %d", addr, vfb->fb_stride, width);
|
||||
const int bpp = fmt == GE_FORMAT_8888 ? 4 : 2;
|
||||
ResizeFramebufFBO(vfb, width, size / (bpp * width));
|
||||
vfb->fb_stride = width;
|
||||
// This might be a bit wider than necessary, but we'll redetect on next render.
|
||||
vfb->width = vfb->width = width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user