mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03: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:
@@ -1105,7 +1105,7 @@ void SurfaceTool::optimize_indices_for_cache() {
|
||||
ERR_FAIL_COND(index_array.size() == 0);
|
||||
|
||||
LocalVector old_index_array = index_array;
|
||||
zeromem(index_array.ptr(), index_array.size() * sizeof(int));
|
||||
memset(index_array.ptr(), 0, index_array.size() * sizeof(int));
|
||||
optimize_vertex_cache_func((unsigned int *)index_array.ptr(), (unsigned int *)old_index_array.ptr(), old_index_array.size(), vertex_array.size());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user