| 1627 | } |
| 1628 | |
| 1629 | ShaderViewer::~ShaderViewer() |
| 1630 | { |
| 1631 | delete m_FindResults; |
| 1632 | m_FindResults = NULL; |
| 1633 | |
| 1634 | // don't want to async invoke while using 'this', so save the trace separately |
| 1635 | ShaderDebugTrace *trace = m_Trace; |
| 1636 | |
| 1637 | // unregister any shortcuts on this window |
| 1638 | m_Ctx.GetMainWindow()->UnregisterShortcut(QString(), this); |
| 1639 | |
| 1640 | m_Ctx.Replay().AsyncInvoke([trace](IReplayController *r) { r->FreeTrace(trace); }); |
| 1641 | |
| 1642 | if(m_RevertCallback) |
| 1643 | m_RevertCallback(&m_Ctx, this, m_EditingShader); |
| 1644 | |
| 1645 | if(m_ModifyCallback) |
| 1646 | m_ModifyCallback(this, true); |
| 1647 | |
| 1648 | m_Ctx.RemoveCaptureViewer(this); |
| 1649 | delete ui; |
| 1650 | } |
| 1651 | |
| 1652 | void ShaderViewer::OnCaptureLoaded() |
| 1653 | { |
nothing calls this directly
no test coverage detected