This seems to be better
This commit is contained in:
parent
fe15d88cd8
commit
8af2e66bd5
1 changed files with 6 additions and 1 deletions
|
@ -667,7 +667,12 @@ void FramebufferManager::SetRenderFrameBuffer() {
|
|||
vfb = v;
|
||||
// Update fb stride in case it changed
|
||||
vfb->fb_stride = fb_stride;
|
||||
if (v->format != fmt || (v->width < drawing_width && v->height < drawing_height)) {
|
||||
vfb->fb_stride = fb_stride;
|
||||
if (v->width < drawing_width && v->height < drawing_height) {
|
||||
v->width = drawing_width;
|
||||
v->height = drawing_height;
|
||||
}
|
||||
if (v->format != fmt) {
|
||||
v->width = drawing_width;
|
||||
v->height = drawing_height;
|
||||
v->format = fmt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue