mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Close transient log-specific windows when a log closes
* Shader viewers already close themselves, but the pixel history view, non-mesh buffer viewers, and constant buffer views also close.
This commit is contained in:
@@ -609,11 +609,14 @@ PixelHistoryView::PixelHistoryView(ICaptureContext &ctx, ResourceId id, QPoint p
|
||||
ui->events->header()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
|
||||
ui->events->header()->setSectionResizeMode(3, QHeaderView::ResizeToContents);
|
||||
ui->events->header()->setSectionResizeMode(4, QHeaderView::ResizeToContents);
|
||||
|
||||
m_Ctx.AddLogViewer(this);
|
||||
}
|
||||
|
||||
PixelHistoryView::~PixelHistoryView()
|
||||
{
|
||||
ui->events->setModel(NULL);
|
||||
m_Ctx.RemoveLogViewer(this);
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user