mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Ensure if duration is set to be recorded per-chunk, it is at least 0
* This could be the case if no duration is provided and we defaulted to -1.
This commit is contained in:
@@ -308,7 +308,11 @@ uint32_t Serialiser<SerialiserMode::Writing>::BeginChunk(uint32_t chunkID, uint3
|
||||
}
|
||||
|
||||
if(c & ChunkDuration)
|
||||
{
|
||||
if(m_ChunkMetadata.durationMicro < 0)
|
||||
m_ChunkMetadata.durationMicro = 0;
|
||||
m_Write->Write(m_ChunkMetadata.durationMicro);
|
||||
}
|
||||
|
||||
if(c & ChunkTimestamp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user