Fix casts for 32-bit

This commit is contained in:
baldurk
2025-08-25 13:09:20 +01:00
parent f511e2e335
commit 3595efcd74
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -624,7 +624,7 @@ void VulkanDebugManager::PatchLineStripIndexBuffer(const ActionDescription *acti
}
if(rs.ibuffer.buf == ResourceId())
indices.resize(readSizeBytes);
indices.resize((size_t)readSizeBytes);
else
GetBufferData(rs.ibuffer.buf,
rs.ibuffer.offs + uint64_t(action->indexOffset) * rs.ibuffer.bytewidth,
+1 -1
View File
@@ -4367,7 +4367,7 @@ void VulkanReplay::FetchVSOut(uint32_t eventId, VulkanRenderState &state)
GetBufferData(state.ibuffer.buf, state.ibuffer.offs + action->indexOffset * idxsize,
readSizeBytes, idxdata);
else if(m_pDriver->Maintenance6())
idxdata.resize(readSizeBytes);
idxdata.resize((size_t)readSizeBytes);
}
// figure out what the maximum index could be, so we can clamp our index buffer to something