From 5ef45a3576d8951ec1d26fe99de69e5db0108be0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 16 Jul 2020 15:56:12 +0100 Subject: [PATCH] Apply output mip/slice when selecting a new texture or new drawcall --- qrenderdoc/Windows/TextureViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index 9cc69d6a0..fe9488b48 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -1477,7 +1477,7 @@ void TextureViewer::UI_OnTextureSelectionChanged(bool newdraw) int highestMip = -1; // only switch to the selected mip for outputs, and when changing drawcall - if(!currentTextureIsLocked() && m_Following.Type != FollowType::ReadOnly && newdraw) + if(!currentTextureIsLocked() && m_Following.Type != FollowType::ReadOnly && (newdraw || newtex)) highestMip = m_Following.GetHighestMip(m_Ctx); // assuming we get a valid mip for the highest mip, only switch to it @@ -1501,7 +1501,7 @@ void TextureViewer::UI_OnTextureSelectionChanged(bool newdraw) { int firstArraySlice = -1; // only switch to the selected mip for outputs, and when changing drawcall - if(!currentTextureIsLocked() && m_Following.Type != FollowType::ReadOnly && newdraw) + if(!currentTextureIsLocked() && m_Following.Type != FollowType::ReadOnly && (newdraw || newtex)) firstArraySlice = m_Following.GetFirstArraySlice(m_Ctx); // see above with highestMip and prevHighestMip for the logic behind this