Correct end framebuf range check.

This commit is contained in:
Unknown W. Brackets
2014-05-25 17:51:12 -07:00
parent 24ebc0d987
commit c3efa05c9e
+3 -2
View File
@@ -838,8 +838,9 @@ void FramebufferManager::DoSetRenderFrameBuffer() {
currentRenderVfb_ = vfb;
u32 byteSize = FramebufferByteSize(vfb);
if (fb_address + byteSize > framebufRangeEnd_) {
framebufRangeEnd_ = ((fb_address + byteSize) & 0x3FFFFFFF) | 0x04000000;
u32 fb_address_mem = (fb_address & 0x3FFFFFFF) | 0x04000000;
if (fb_address_mem + byteSize > framebufRangeEnd_) {
framebufRangeEnd_ = fb_address_mem + byteSize;
}
INFO_LOG(SCEGE, "Creating FBO for %08x : %i x %i x %i", vfb->fb_address, vfb->width, vfb->height, vfb->format);