From 0b502f17ff8397a4bd5b742e891a07400437bd41 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 16 Sep 2014 19:51:52 +0100 Subject: [PATCH] Fix edge case with save options --- renderdocui/Windows/Dialogs/TextureSaveDialog.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/renderdocui/Windows/Dialogs/TextureSaveDialog.cs b/renderdocui/Windows/Dialogs/TextureSaveDialog.cs index ad38737b4..bbebc01b3 100644 --- a/renderdocui/Windows/Dialogs/TextureSaveDialog.cs +++ b/renderdocui/Windows/Dialogs/TextureSaveDialog.cs @@ -133,6 +133,14 @@ namespace renderdocui.Windows.Dialogs sliceGroup.Visible = (tex.depth > 1 || tex.arraysize > 1 || tex.msSamp > 1); + if (saveData.destType != FileType.DDS) + { + cubeCruciform.Enabled = (tex.cubemap && tex.arraysize == 6); + + if (!oneSlice.Checked && !cubeCruciform.Enabled) + mapSlicesToGrid.Checked = true; + } + fileFormat.SelectedIndex = (int)saveData.destType; }