From ba3b76a61aaca5b4e444cfc3f77efa726dfd9032 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 3 May 2017 19:50:58 +0100 Subject: [PATCH] Fix GL's vertex buffer columns to be consistent: Stride | Offset | Divis --- qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp index 14320f5c3..feabd08ff 100644 --- a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp +++ b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp @@ -174,7 +174,7 @@ GLPipelineStateViewer::GLPipelineStateViewer(ICaptureContext &ctx, PipelineState } { - ui->viBuffers->setColumns({tr("Slot"), tr("Buffer"), tr("Divisor"), tr("Offset"), tr("Stride"), + ui->viBuffers->setColumns({tr("Slot"), tr("Buffer"), tr("Stride"), tr("Offset"), tr("Divisor"), tr("Byte Length"), tr("Go")}); ui->viBuffers->header()->resizeSection(0, 75); ui->viBuffers->header()->setSectionResizeMode(0, QHeaderView::Interactive); @@ -1209,7 +1209,7 @@ void GLPipelineStateViewer::setState() } RDTreeWidgetItem *node = - new RDTreeWidgetItem({tr("Element"), name, 0, 0, draw ? draw->indexByteWidth : 0, + new RDTreeWidgetItem({tr("Element"), name, draw ? draw->indexByteWidth : 0, 0, 0, (qulonglong)length, QString()}); node->setTag(QVariant::fromValue(VBIBTag(state.m_VtxIn.ibuffer, draw ? draw->indexOffset : 0)));