diff options
author | clayjohn <claynjohn@gmail.com> | 2022-10-12 12:45:47 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-10-14 08:02:28 -0700 |
commit | b6f44859d7ab5b128d71ce0d64b46b171b9357aa (patch) | |
tree | c472b1e1f9e20dc541fc55aaca5b9bc66ec77072 /servers/rendering/renderer_rd/effects | |
parent | 09b1a6f85f3f1ae1c7771d215770d9667747f198 (diff) |
Implement multiple clip_children modes for CanvasItems
Diffstat (limited to 'servers/rendering/renderer_rd/effects')
-rw-r--r-- | servers/rendering/renderer_rd/effects/copy_effects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/renderer_rd/effects/copy_effects.cpp b/servers/rendering/renderer_rd/effects/copy_effects.cpp index 53237c1dfb..a14228eb3d 100644 --- a/servers/rendering/renderer_rd/effects/copy_effects.cpp +++ b/servers/rendering/renderer_rd/effects/copy_effects.cpp @@ -357,8 +357,8 @@ void CopyEffects::copy_to_rect(RID p_source_rd_texture, RID p_dest_texture, cons copy.push_constant.flags |= COPY_FLAG_ALPHA_TO_ONE; } - copy.push_constant.section[0] = 0; - copy.push_constant.section[1] = 0; + copy.push_constant.section[0] = p_rect.position.x; + copy.push_constant.section[1] = p_rect.position.y; copy.push_constant.section[2] = p_rect.size.width; copy.push_constant.section[3] = p_rect.size.height; copy.push_constant.target[0] = p_rect.position.x; |