diff options
author | sakrel <2487152+sakrel@users.noreply.github.com> | 2022-08-29 03:51:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 03:51:53 +0200 |
commit | 728fb6ea958733260c16cba545db70d9763e3ba0 (patch) | |
tree | 42a6b1428776e475ad3d4a225407fe6e6cbd7273 /servers | |
parent | 58f8f3a40e8b068b9f7b92cae21e0cabb406dd07 (diff) |
Fix updating OccluderPolygon shapes
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp index 67c929b724..7102f1f0ff 100644 --- a/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp @@ -1965,8 +1965,8 @@ void RendererCanvasRenderRD::occluder_polygon_set_shape(RID p_occluder, const Ve } else { //update existing - RD::get_singleton()->buffer_update(oc->vertex_buffer, 0, sizeof(real_t) * 2 * p_points.size(), p_points.ptr()); - RD::get_singleton()->buffer_update(oc->index_buffer, 0, sdf_indices.size() * sizeof(int32_t), sdf_indices.ptr()); + RD::get_singleton()->buffer_update(oc->sdf_vertex_buffer, 0, sizeof(real_t) * 2 * p_points.size(), p_points.ptr()); + RD::get_singleton()->buffer_update(oc->sdf_index_buffer, 0, sdf_indices.size() * sizeof(int32_t), sdf_indices.ptr()); } } } |