mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Don't try to close ConstantBufferPreviewer window when loading capture
This commit is contained in:
@@ -82,17 +82,22 @@ ConstantBufferPreviewer *ConstantBufferPreviewer::has(ShaderStage stage, uint32_
|
||||
|
||||
void ConstantBufferPreviewer::OnCaptureLoaded()
|
||||
{
|
||||
OnCaptureClosed();
|
||||
Reset();
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::OnCaptureClosed()
|
||||
{
|
||||
Reset();
|
||||
|
||||
ToolWindowManager::closeToolWindow(this);
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::Reset()
|
||||
{
|
||||
ui->variables->clear();
|
||||
ui->variables->clearInternalExpansions();
|
||||
|
||||
ui->saveCSV->setEnabled(false);
|
||||
|
||||
ToolWindowManager::closeToolWindow(this);
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::OnEventChanged(uint32_t eventId)
|
||||
|
||||
@@ -52,6 +52,7 @@ public:
|
||||
// ICaptureViewer
|
||||
void OnCaptureLoaded() override;
|
||||
void OnCaptureClosed() override;
|
||||
|
||||
void OnSelectedEventChanged(uint32_t eventId) override {}
|
||||
void OnEventChanged(uint32_t eventId) override;
|
||||
|
||||
@@ -65,6 +66,8 @@ private slots:
|
||||
void processFormat(const QString &format);
|
||||
|
||||
private:
|
||||
void Reset();
|
||||
|
||||
Ui::ConstantBufferPreviewer *ui;
|
||||
ICaptureContext &m_Ctx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user