summaryrefslogtreecommitdiff
path: root/servers/visual
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-18 19:29:24 +0100
committerGitHub <noreply@github.com>2018-01-18 19:29:24 +0100
commita1c08b71091c47d626410406f36a4bb6fca40953 (patch)
tree767bf134aba4e504b2f24073899b98cce3216fb9 /servers/visual
parentf2a26fba9694075faffcdb6b0c89a0541a92f314 (diff)
parentbccb4840c8897434274d102649399bd660e9a1fc (diff)
Merge pull request #15848 from binbitten/fix-viewport-bg
Fix wrong viewport transparent-bg
Diffstat (limited to 'servers/visual')
-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 222dc6351b..3eb8953c1f 100644
--- a/servers/visual/visual_server_viewport.cpp
+++ b/servers/visual/visual_server_viewport.cpp
@@ -505,7 +505,7 @@ void VisualServerViewport::viewport_set_transparent_background(RID p_viewport, b
ERR_FAIL_COND(!viewport);
VSG::storage->render_target_set_flag(viewport->render_target, RasterizerStorage::RENDER_TARGET_TRANSPARENT, p_enabled);
- viewport->transparent_bg = true;
+ viewport->transparent_bg = p_enabled;
}
void VisualServerViewport::viewport_set_global_canvas_transform(RID p_viewport, const Transform2D &p_transform) {