mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-16 14:54:45 +08:00
Peds form progress, new MetaNames, ped ymt metas parsing
This commit is contained in:
@@ -78,7 +78,7 @@ namespace CodeWalker.Rendering
|
||||
public void Update(DeviceContext context, T[] data)
|
||||
{
|
||||
var dataBox = context.MapSubresource(Buffer, 0, MapMode.WriteDiscard, MapFlags.None);
|
||||
Utilities.Write(dataBox.DataPointer, data, 0, data.Length);
|
||||
Utilities.Write(dataBox.DataPointer, data, 0, Math.Min(data.Length, StructCount));
|
||||
context.UnmapSubresource(Buffer, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user