mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-06 23:00:59 +00:00
Don't fetch buffer data if it's not yet initialised
This commit is contained in:
@@ -2563,7 +2563,8 @@ void BufferViewer::OnEventChanged(uint32_t eventId)
|
||||
uint64_t unclampedLen = m_ByteSize;
|
||||
if(unclampedLen == UINT64_MAX)
|
||||
{
|
||||
uint64_t bufLen = m_IsBuffer ? m_Ctx.GetBuffer(m_BufferID)->length : 0;
|
||||
uint64_t bufLen =
|
||||
m_IsBuffer && m_BufferID != ResourceId() ? m_Ctx.GetBuffer(m_BufferID)->length : 0;
|
||||
uint64_t bufOffs = m_ByteOffset;
|
||||
|
||||
if(bufOffs >= bufLen)
|
||||
|
||||
Reference in New Issue
Block a user