summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-07-12 05:29:03 +0200
committerGitHub <noreply@github.com>2018-07-12 05:29:03 +0200
commitd488c35efabee9d9317a91cdb905a460e7fce0af (patch)
tree345f2d5be18c70d634ccbf13c4515e46ffa49f11 /servers
parentcc57b62ab3ac7b06527d7998dec9f1aae11067f8 (diff)
parent892a4b175a54c1172ba7c8dc1b60f4ad25b968a2 (diff)
Merge pull request #20026 from taylorjoshuaw/fix-window-height-crash
Temporary fix to issue #19628 and #19207
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/visual_server_viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/visual_server_viewport.cpp b/servers/visual/visual_server_viewport.cpp
index dcc270ca5e..dd6bc3cf26 100644
--- a/servers/visual/visual_server_viewport.cpp
+++ b/servers/visual/visual_server_viewport.cpp
@@ -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;