mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Disable debug/pixel history buttons when they cannot be used
This commit is contained in:
@@ -478,6 +478,10 @@ void TextureViewer::UI_UpdateCachedTexture()
|
||||
id = m_TexDisplay.resourceId;
|
||||
|
||||
m_CachedTexture = m_Ctx.GetTexture(id);
|
||||
|
||||
ui->debugPixelContext->setEnabled(m_Ctx.CurPipelineState().IsCaptureD3D11() &&
|
||||
m_CachedTexture != NULL);
|
||||
ui->pixelHistory->setEnabled(m_Ctx.CurPipelineState().IsCaptureD3D11() && m_CachedTexture != NULL);
|
||||
}
|
||||
|
||||
TextureViewer::TextureViewer(ICaptureContext &ctx, QWidget *parent)
|
||||
|
||||
Reference in New Issue
Block a user