Skip to content

Commit

Permalink
Raycast: Fix use of removed copymem after godotengine#48239
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Apr 28, 2021
1 parent 305b2a1 commit 35a8693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/raycast/raycast_occlusion_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void RaycastOcclusionCull::Scenario::_update_dirty_instance(int p_idx, RID *p_in
}

occ_inst->indices.resize(occ->indices.size());
copymem(occ_inst->indices.ptr(), occ->indices.ptr(), occ->indices.size() * sizeof(int32_t));
memcpy(occ_inst->indices.ptr(), occ->indices.ptr(), occ->indices.size() * sizeof(int32_t));
}

void RaycastOcclusionCull::Scenario::_transform_vertices_thread(uint32_t p_thread, TransformThreadData *p_data) {
Expand Down

0 comments on commit 35a8693

Please sign in to comment.