mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-11 23:01:28 +00:00
Fix a crash opening performance counter viewer with capture open
This commit is contained in:
1 file changed
+2
-2
@@ -285,8 +285,6 @@ PerformanceCounterViewer::PerformanceCounterViewer(ICaptureContext &ctx, QWidget
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
m_Ctx.AddCaptureViewer(this);
|
||||
|
||||
connect(ui->captureCounters, &QToolButton::clicked, this,
|
||||
&PerformanceCounterViewer::CaptureCounters);
|
||||
|
||||
@@ -306,6 +304,8 @@ PerformanceCounterViewer::PerformanceCounterViewer(ICaptureContext &ctx, QWidget
|
||||
|
||||
ui->counterResults->setSortingEnabled(true);
|
||||
ui->counterResults->sortByColumn(0, Qt::AscendingOrder);
|
||||
|
||||
m_Ctx.AddCaptureViewer(this);
|
||||
}
|
||||
|
||||
PerformanceCounterViewer::~PerformanceCounterViewer()
|
||||
|
||||
Reference in new issue
Block a user