diff --git a/qrenderdoc/Windows/BufferViewer.cpp b/qrenderdoc/Windows/BufferViewer.cpp index cfe1b4cd8..756a7ea4c 100644 --- a/qrenderdoc/Windows/BufferViewer.cpp +++ b/qrenderdoc/Windows/BufferViewer.cpp @@ -2112,8 +2112,12 @@ void BufferViewer::OnEventChanged(uint32_t eventId) } else { + uint64_t len = m_ByteSize; + if(len == UINT64_MAX) + len = 0; + QString errors; - bufdata->vsinConfig.columns = FormatElement::ParseFormatString(m_Format, 0, true, errors); + bufdata->vsinConfig.columns = FormatElement::ParseFormatString(m_Format, len, true, errors); ClearModels(); } @@ -3260,7 +3264,11 @@ void BufferViewer::processFormat(const QString &format) BufferConfiguration bufconfig; - QList cols = FormatElement::ParseFormatString(format, 0, true, errors); + uint64_t len = m_ByteSize; + if(len == UINT64_MAX) + len = 0; + + QList cols = FormatElement::ParseFormatString(format, len, true, errors); int maxNumRows = 1;