make it impossible to shrink framebuffer < 0, fixes #2066

This commit is contained in:
Juan Linietsky 2016-01-02 21:08:57 -03:00
parent 23441ec867
commit eca92bb7ac

View File

@ -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;