mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-06 06:41:05 +00:00
Fix calculation of slices on 3D textures when viewing up/down mips
This commit is contained in:
@@ -3836,7 +3836,7 @@ void TextureViewer::on_mipLevel_currentIndexChanged(int index)
|
||||
|
||||
TextureDescription &tex = *texptr;
|
||||
|
||||
uint32_t prevSlice = m_TexDisplay.subresource.slice;
|
||||
uint32_t prevSlice = m_TexDisplay.subresource.slice << (int)m_TexDisplay.subresource.mip;
|
||||
|
||||
if(tex.mips > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user