diff --git a/qrenderdoc/Widgets/BufferFormatSpecifier.cpp b/qrenderdoc/Widgets/BufferFormatSpecifier.cpp index 5f5dc1e9e..05fca2561 100644 --- a/qrenderdoc/Widgets/BufferFormatSpecifier.cpp +++ b/qrenderdoc/Widgets/BufferFormatSpecifier.cpp @@ -54,6 +54,11 @@ void BufferFormatSpecifier::toggleHelp() showHelp(false); } +void BufferFormatSpecifier::setFormat(const QString &format) +{ + ui->formatText->setText(format); +} + void BufferFormatSpecifier::setErrors(const QString &errors) { ui->errors->setText(errors); diff --git a/qrenderdoc/Widgets/BufferFormatSpecifier.h b/qrenderdoc/Widgets/BufferFormatSpecifier.h index f196edfd3..45496bcfe 100644 --- a/qrenderdoc/Widgets/BufferFormatSpecifier.h +++ b/qrenderdoc/Widgets/BufferFormatSpecifier.h @@ -39,14 +39,14 @@ public: explicit BufferFormatSpecifier(QWidget *parent = 0); ~BufferFormatSpecifier(); - void setErrors(const QString &errors); - void showHelp(bool help); - signals: void processFormat(const QString &format); public slots: void toggleHelp(); + void setFormat(const QString &format); + void setErrors(const QString &errors); + void showHelp(bool help); private slots: void on_apply_clicked(); diff --git a/qrenderdoc/Windows/BufferViewer.cpp b/qrenderdoc/Windows/BufferViewer.cpp index 8b2fc032c..a8428bf57 100644 --- a/qrenderdoc/Windows/BufferViewer.cpp +++ b/qrenderdoc/Windows/BufferViewer.cpp @@ -2735,6 +2735,8 @@ void BufferViewer::processFormat(const QString &format) m_Format = format; + ui->formatSpecifier->setFormat(format); + m_ModelVSIn->columns = cols; uint32_t stride = 0;