mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
clamp when assigning prevHighestMip, just in case
This commit is contained in:
@@ -1694,7 +1694,7 @@ namespace renderdocui.Windows
|
||||
}
|
||||
|
||||
if (mipLevel.SelectedIndex == -1)
|
||||
mipLevel.SelectedIndex = prevHighestMip;
|
||||
mipLevel.SelectedIndex = Helpers.Clamp(prevHighestMip, 0, (int)tex.mips - 1);
|
||||
|
||||
prevHighestMip = highestMip;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user