Remove parent widget parameter from shader view/edit/debug functions

This commit is contained in:
baldurk
2017-04-07 18:23:17 +01:00
parent 35f9c53486
commit ea1dbc27f9
11 changed files with 27 additions and 36 deletions
+3 -4
View File
@@ -3300,8 +3300,8 @@ void TextureViewer::on_debugPixelContext_clicked()
m_Ctx.CurPipelineState().GetBindpointMapping(ShaderStage::Pixel);
// viewer takes ownership of the trace
IShaderViewer *s = m_Ctx.DebugShader(&bindMapping, shaderDetails, ShaderStage::Pixel, trace,
debugContext, this);
IShaderViewer *s =
m_Ctx.DebugShader(&bindMapping, shaderDetails, ShaderStage::Pixel, trace, debugContext);
m_Ctx.AddDockWindow(s->Widget(), DockReference::AddTo, this);
});
@@ -3619,8 +3619,7 @@ void TextureViewer::on_customEdit_clicked()
}
},
[this, key](ICaptureContext *ctx) { m_CustomShaderEditor.remove(key); },
m_Ctx.GetMainWindow()->Widget());
[this, key](ICaptureContext *ctx) { m_CustomShaderEditor.remove(key); });
m_CustomShaderEditor[key] = s;