From f1b247fa3d966aa6acda400b41643675a933fa25 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 7 Nov 2016 14:53:47 +0100 Subject: [PATCH] Don't change filetype to PNG while trying to invoke callback --- renderdocui/Windows/Dialogs/TextureSaveDialog.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderdocui/Windows/Dialogs/TextureSaveDialog.cs b/renderdocui/Windows/Dialogs/TextureSaveDialog.cs index 47f350a1c..f3c1a287f 100644 --- a/renderdocui/Windows/Dialogs/TextureSaveDialog.cs +++ b/renderdocui/Windows/Dialogs/TextureSaveDialog.cs @@ -184,9 +184,11 @@ namespace renderdocui.Windows.Dialogs mapSlicesToGrid.Checked = true; } + FileType selectedType = saveData.destType; + fileFormat.SelectedIndex = 0; fileFormat.SelectedIndex = 1; - fileFormat.SelectedIndex = (int)saveData.destType; + fileFormat.SelectedIndex = (int)selectedType; if(saveData.alpha == AlphaMapping.Discard) alphaMap.SelectedIndex = 0;