RPF Explorer drag & drop folders, delete folders with items, render bug fix

This commit is contained in:
dexyfex
2018-02-28 03:46:06 +11:00
Unverified
parent 5bce17785a
commit e58baa79f4
5 changed files with 190 additions and 48 deletions
+7 -3
View File
@@ -34,9 +34,13 @@ namespace CodeWalker.Rendering
}
public void Update(DeviceContext context)
{
var dataBox = context.MapSubresource(Buffer, 0, MapMode.WriteDiscard, MapFlags.None);
Utilities.Write(dataBox.DataPointer, ref Vars);
context.UnmapSubresource(Buffer, 0);
try
{
var dataBox = context.MapSubresource(Buffer, 0, MapMode.WriteDiscard, MapFlags.None);
Utilities.Write(dataBox.DataPointer, ref Vars);
context.UnmapSubresource(Buffer, 0);
}
catch { } //not much we can do about this except ignore it..
}
public void SetVSCBuffer(DeviceContext context, int slot)
{