mach: fix deprecated mem.set() call (#770)
Updating to the @memset builtin fixes the cubemap and pbr-basic examples assuming zigimg is also up to date mem.set() appears to have been deprecated -
This commit is contained in:
parent
a2d222072e
commit
33e27d9bf1
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ pub fn VertexWriter(comptime VertexType: type, comptime IndexType: type) type {
|
||||||
result.next_collision_index = sparse_vertices_count;
|
result.next_collision_index = sparse_vertices_count;
|
||||||
result.next_packed_index = 0;
|
result.next_packed_index = 0;
|
||||||
result.written_indices_count = 0;
|
result.written_indices_count = 0;
|
||||||
std.mem.set(MapEntry, result.sparse_to_packed_map, .{});
|
@memset(result.sparse_to_packed_map, .{});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue