Merge pull request #20026 from taylorjoshuaw/fix-window-height-crash

Temporary fix to issue #19628 and #19207
This commit is contained in:
Max Hilbrunner 2018-07-12 05:29:03 +02:00 committed by GitHub
commit d488c35efa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,7 +268,7 @@ void VisualServerViewport::draw_viewports() {
ERR_CONTINUE(!vp->render_target.is_valid());
bool visible = vp->viewport_to_screen_rect != Rect2() || vp->update_mode == VS::VIEWPORT_UPDATE_ALWAYS || vp->update_mode == VS::VIEWPORT_UPDATE_ONCE || (vp->update_mode == VS::VIEWPORT_UPDATE_WHEN_VISIBLE && VSG::storage->render_target_was_used(vp->render_target));
visible = visible && vp->size.x > 0 && vp->size.y > 0;
visible = visible && vp->size.x > 1 && vp->size.y > 1;
if (!visible)
continue;