mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 00:03:42 +00:00
Only remover disassembly toolbar when debugging, not when viewing shader
This commit is contained in:
1 file changed
+2
-2
@@ -290,8 +290,6 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
|
||||
m_Trace = trace;
|
||||
m_Stage = stage;
|
||||
|
||||
m_DisassemblyFrame->layout()->removeWidget(m_DisassemblyToolbar);
|
||||
|
||||
// no replacing allowed, stay in find mode
|
||||
m_FindReplace->allowUserModeChange(false);
|
||||
|
||||
@@ -341,6 +339,8 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
|
||||
{
|
||||
m_DisassemblyView->usePopUp(SC_POPUP_NEVER);
|
||||
|
||||
m_DisassemblyFrame->layout()->removeWidget(m_DisassemblyToolbar);
|
||||
|
||||
m_DisassemblyView->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
QObject::connect(m_DisassemblyView, &ScintillaEdit::customContextMenuRequested, this,
|
||||
&ShaderViewer::disassembly_contextMenu);
|
||||
|
||||
Reference in new issue
Block a user