Softmem flush ID fix

The ResourceId being passed to GetSize_InitialState() to set the chunk size was the ID of the resource triggering the flush NOT the ID of the resource being flushed.
This commit is contained in:
Cam Mannett
2024-08-04 07:30:01 +01:00
committed by Baldur Karlsson
parent eebdb5a8bd
commit fd3fda3905
+1 -1
View File
@@ -122,7 +122,7 @@ bool WrappedVulkan::Prepare_InitialState(WrappedVkRes *res)
uint64_t start = ser.GetWriter()->GetOffset();
{
uint64_t size = GetSize_InitialState(id, initData);
uint64_t size = GetSize_InitialState(flushId, initData);
SCOPED_SERIALISE_CHUNK(SystemChunk::InitialContents, size);