mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 10:31:15 +00:00
Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f6639.
There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.
This commit is contained in:
parent
288f484d0a
commit
8247667a3e
70 changed files with 200 additions and 268 deletions
|
|
@ -304,7 +304,7 @@ RendererCanvasRender::PolygonID RendererCanvasRenderRD::request_polygon(const Ve
|
|||
index_buffer.resize(p_indices.size() * sizeof(int32_t));
|
||||
{
|
||||
uint8_t *w = index_buffer.ptrw();
|
||||
copymem(w, p_indices.ptr(), sizeof(int32_t) * p_indices.size());
|
||||
memcpy(w, p_indices.ptr(), sizeof(int32_t) * p_indices.size());
|
||||
}
|
||||
pb.index_buffer = RD::get_singleton()->index_buffer_create(p_indices.size(), RD::INDEX_BUFFER_FORMAT_UINT32, index_buffer);
|
||||
pb.indices = RD::get_singleton()->index_array_create(pb.index_buffer, 0, p_indices.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue