Fix largest framebuf size in throughmode.
This was probably always meant to be <=, since it logically makes sense for them to be equal. Might fix cases of resizing down a framebuf in throughmode, where viewport isn't as good a heuristic.
This commit is contained in:
parent
088ced7261
commit
5a7ad5b176
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ VirtualFramebuffer *FramebufferManagerCommon::DoSetRenderFrameBuffer(const Frame
|
|||
// Keep track, but this isn't really used.
|
||||
vfb->z_stride = params.z_stride;
|
||||
// Heuristic: In throughmode, a higher height could be used. Let's avoid shrinking the buffer.
|
||||
if (params.isModeThrough && (int)vfb->width < params.fb_stride) {
|
||||
if (params.isModeThrough && (int)vfb->width <= params.fb_stride) {
|
||||
vfb->width = std::max((int)vfb->width, drawing_width);
|
||||
vfb->height = std::max((int)vfb->height, drawing_height);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue