Correct Gods Eater Burst tex download size.

Probably takes care of #6289, although it doesn't crash for me.
This commit is contained in:
Unknown W. Brackets committed 2014-06-10 22:59:08 -07:00
1 parent 4ed944a576
commit dd4b191003
3 files changed
+7 -3

No files matched your search

+4
View File
@@ -2075,6 +2075,10 @@ bool FramebufferManager::NotifyFramebufferCopy(u32 src, u32 dst, int size, bool
// Maybe at least if x offset is 0, in case a game manually copies or memsets by stride.
const u32 srcBpp = srcBuffer->format == GE_FORMAT_8888 ? 4 : 2;
int h = size / (srcBuffer->fb_stride * srcBpp);
if (h > srcBuffer->height) {
WARN_LOG_REPORT_ONCE(btdcpybig, G3D, "Memcpy fbo download too large at %08x size=%08x height=%d", src, size, srcBuffer->height);
h = srcBuffer->height;
}
if (h > 0) {
ReadFramebufferToMemory(srcBuffer, true, 0, 0, srcBuffer->width, h);
}