mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Fix casts for 32-bit
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user