Call AddLogViewer after initialising pixel context & render

* The other way around, if the texture viewer is created after a log has
  already been opened then we end up un-setting the already configured
  outputs.
This commit is contained in:
baldurk
2016-10-07 15:58:51 +02:00
parent e32e26eb83
commit 33e727e4f6
+2 -2
View File
@@ -317,11 +317,11 @@ TextureViewer::TextureViewer(CaptureContext *ctx, QWidget *parent)
{
ui->setupUi(this);
m_Ctx->AddLogViewer(this);
ui->render->SetOutput(m_Ctx, NULL);
ui->pixelContext->SetOutput(m_Ctx, NULL);
m_Ctx->AddLogViewer(this);
memset(&m_TexDisplay, 0, sizeof(m_TexDisplay));
m_TexDisplay.sampleIdx = ~0U;
m_TexDisplay.linearDisplayAsGamma = true;