mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-03 03:27:19 +00:00
Revert "Another attempt to sizing framebuffer based on fmt"
This reverts commit c0e8893560b74b5e9b19104584faa2578f576925.
This commit is contained in:
parent
c213c44050
commit
502cbc170a
@ -663,18 +663,14 @@ void FramebufferManager::SetRenderFrameBuffer() {
|
|||||||
VirtualFramebuffer *vfb = 0;
|
VirtualFramebuffer *vfb = 0;
|
||||||
for (size_t i = 0; i < vfbs_.size(); ++i) {
|
for (size_t i = 0; i < vfbs_.size(); ++i) {
|
||||||
VirtualFramebuffer *v = vfbs_[i];
|
VirtualFramebuffer *v = vfbs_[i];
|
||||||
if (MaskedEqual(v->fb_address, fb_address)) {
|
if (MaskedEqual(v->fb_address, fb_address) && v->width >= drawing_width && v->height >= drawing_height) {
|
||||||
if (v->format == fmt) {
|
// Let's not be so picky for now. Let's say this is the one.
|
||||||
// Let's not be so picky for now. Let's say this is the one.
|
vfb = v;
|
||||||
vfb = v;
|
// Update fb stride in case it changed
|
||||||
vfb->fb_stride = fb_stride;
|
vfb->fb_stride = fb_stride;
|
||||||
break;
|
v->format = fmt;
|
||||||
} else {
|
break;
|
||||||
DestroyFramebuf(v);
|
}
|
||||||
vfbs_.erase(vfbs_.begin() + i--);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float renderWidthFactor = (float)PSP_CoreParameter().renderWidth / 480.0f;
|
float renderWidthFactor = (float)PSP_CoreParameter().renderWidth / 480.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user