From 152db57598fdfec738ef748cbe9f97055be8a3bd Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 15 Jul 2020 11:50:56 +0100 Subject: [PATCH] Default A8 textures to show the alpha channel only --- qrenderdoc/Windows/TextureViewer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index f12353673..9cc69d6a0 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -1571,6 +1571,15 @@ void TextureViewer::UI_OnTextureSelectionChanged(bool newdraw) ui->channelBlue->setChecked(true); ui->channelAlpha->setChecked(false); + // for alpha textures, only show the alpha channel + if(texptr->format.type == ResourceFormatType::A8) + { + ui->channelRed->setChecked(false); + ui->channelGreen->setChecked(false); + ui->channelBlue->setChecked(false); + ui->channelAlpha->setChecked(true); + } + ui->depthDisplay->setChecked(true); ui->stencilDisplay->setChecked(false);