make it impossible to shrink framebuffer < 0, fixes #2066
This commit is contained in:
parent
23441ec867
commit
eca92bb7ac
1 changed files with 2 additions and 0 deletions
|
@ -10306,6 +10306,8 @@ void RasterizerGLES2::_update_framebuffer() {
|
|||
return;
|
||||
|
||||
int scale = GLOBAL_DEF("rasterizer/framebuffer_shrink",1);
|
||||
if (scale<1)
|
||||
scale=1;
|
||||
|
||||
int dwidth = OS::get_singleton()->get_video_mode().width/scale;
|
||||
int dheight = OS::get_singleton()->get_video_mode().height/scale;
|
||||
|
|
Loading…
Reference in a new issue