summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-17 10:27:38 +0100
committerGitHub <noreply@github.com>2022-01-17 10:27:38 +0100
commit4ff51adc383b173fc43ff6f945a924549b5bfe1a (patch)
treeae64c370630903ed6666376e8c4c41778c267937
parent345b8e41cfcc7b13fd70e8081c582c6c9d48a067 (diff)
parent7870cf24f28ed93c9a105d31d454d02c1a79ad88 (diff)
Merge pull request #56859 from timothyqiu/who-am-i
-rw-r--r--servers/rendering/renderer_canvas_cull.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_canvas_cull.cpp b/servers/rendering/renderer_canvas_cull.cpp
index f5e2cbcd6c..418d2bc42e 100644
--- a/servers/rendering/renderer_canvas_cull.cpp
+++ b/servers/rendering/renderer_canvas_cull.cpp
@@ -1440,7 +1440,7 @@ void RendererCanvasCull::canvas_light_occluder_set_polygon(RID p_occluder, RID p
ERR_FAIL_COND(!occluder);
if (occluder->polygon.is_valid()) {
- LightOccluderPolygon *occluder_poly = canvas_light_occluder_polygon_owner.get_or_null(p_polygon);
+ LightOccluderPolygon *occluder_poly = canvas_light_occluder_polygon_owner.get_or_null(occluder->polygon);
if (occluder_poly) {
occluder_poly->owners.erase(occluder);
}