mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user