Update qrenderdoc for API changes

This commit is contained in:
baldurk
2016-10-14 19:38:11 +02:00
parent c71225e4be
commit 4cd31908b4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1157,7 +1157,7 @@ void TextureViewer::UI_OnTextureSelectionChanged(bool newdraw)
ui->sliceFace->clear();
if(tex.numSubresources == tex.mips && tex.depth <= 1)
if(tex.arraysize == 1 && tex.depth <= 1)
{
ui->sliceFace->setEnabled(false);
}
@@ -1167,7 +1167,7 @@ void TextureViewer::UI_OnTextureSelectionChanged(bool newdraw)
QString cubeFaces[] = {"X+", "X-", "Y+", "Y-", "Z+", "Z-"};
uint32_t numSlices = (qMax(1U, tex.depth) * tex.numSubresources) / tex.mips;
uint32_t numSlices = tex.arraysize;
// for 3D textures, display the number of slices at this mip
if(tex.depth > 1)