From cd62b87fd1b7830a0662278885c6233baa6c277f Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Fri, 6 Feb 2026 13:05:17 +1300 Subject: [PATCH] Fix DXIL Debug Source debugging not activating in specific case If the debug source information comes from the DXBC chunk then the source filename won't have had its path separator standarised and the filename matching won't work --- renderdoc/driver/shaders/dxil/dxil_reflect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/shaders/dxil/dxil_reflect.cpp b/renderdoc/driver/shaders/dxil/dxil_reflect.cpp index 3c17f6c1e..3d1c340e2 100644 --- a/renderdoc/driver/shaders/dxil/dxil_reflect.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_reflect.cpp @@ -2091,7 +2091,8 @@ void Program::GetLineInfo(size_t instruction, uintptr_t offset, LineColumnInfo & RDCASSERT(!shaderFilePath.empty()); for(int32_t iFile = 0; iFile < Files.count(); iFile++) { - rdcstr filePath = Files[iFile].filename; + // Files[] might come from DXIL or DXBC data : ensure the path separator is standardised in all cases + rdcstr filePath = standardise_directory_separator(Files[iFile].filename); if(filePath == shaderFilePath) { fileIndex = iFile;