mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 22:23:07 +00:00
make it impossible to shrink framebuffer < 0, fixes #2066
This commit is contained in:
parent
23441ec867
commit
eca92bb7ac
@ -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 New Issue
Block a user