mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 00:16:45 +00:00
Apply output mip/slice when selecting a new texture or new drawcall
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user