Skip to content

Commit

Permalink
Merge pull request #20026 from taylorjoshuaw/fix-window-height-crash
Browse files Browse the repository at this point in the history
Temporary fix to issue #19628 and #19207
  • Loading branch information
mhilbrunner authored Jul 12, 2018
2 parents cc57b62 + 892a4b1 commit d488c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/visual/visual_server_viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d488c35

Please sign in to comment.