From 03fc5929ccb333fb18f50d53b8cfaa6c7a9b0afd Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 12 Feb 2018 17:00:32 +0000 Subject: [PATCH] Fix a typo leading to mis-reporting of import/export format capabilities --- renderdoc/core/core.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/renderdoc/core/core.cpp b/renderdoc/core/core.cpp index d913bc144..bf9b4b5d4 100644 --- a/renderdoc/core/core.cpp +++ b/renderdoc/core/core.cpp @@ -849,13 +849,15 @@ std::vector RenderDoc::GetCaptureFileFormats() { std::vector ret; - CaptureFileFormat rdc; - rdc.name = "rdc"; - rdc.description = "Native RDC capture file format."; - rdc.openSupported = true; - rdc.convertSupported = true; + { + CaptureFileFormat rdc; + rdc.name = "rdc"; + rdc.description = "Native RDC capture file format."; + rdc.openSupported = true; + rdc.convertSupported = true; - ret.push_back(rdc); + ret.push_back(rdc); + } for(auto it = m_ImportExportFormats.begin(); it != m_ImportExportFormats.end(); ++it) { @@ -863,10 +865,10 @@ std::vector RenderDoc::GetCaptureFileFormats() fmt.name = it->first; fmt.description = it->second; - rdc.openSupported = m_Importers.find(it->first) != m_Importers.end(); - rdc.convertSupported = m_Exporters.find(it->first) != m_Exporters.end(); + fmt.openSupported = m_Importers.find(it->first) != m_Importers.end(); + fmt.convertSupported = m_Exporters.find(it->first) != m_Exporters.end(); - RDCASSERT(rdc.openSupported || rdc.convertSupported); + RDCASSERT(fmt.openSupported || fmt.convertSupported); ret.push_back(fmt); }