mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Only use base filename, not full path
This commit is contained in:
@@ -1232,7 +1232,7 @@ void VulkanPipelineStateViewer::setShaderState(const VulkanPipelineState::Shader
|
||||
if(entryFile < 0 || entryFile >= shaderDetails->DebugInfo.files.count)
|
||||
entryFile = 0;
|
||||
|
||||
shaderfn = ToQStr(shaderDetails->DebugInfo.files[entryFile].first);
|
||||
shaderfn = QFileInfo(ToQStr(shaderDetails->DebugInfo.files[entryFile].first)).fileName();
|
||||
|
||||
shader->setText(entryFunc + "() - " + shaderfn);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ ShaderViewer::ShaderViewer(CaptureContext *ctx, ShaderReflection *shader, Shader
|
||||
QWidget *sel = m_DisassemblyView;
|
||||
for(auto &f : shader->DebugInfo.files)
|
||||
{
|
||||
QString name = ToQStr(f.first);
|
||||
QString name = QFileInfo(ToQStr(f.first)).fileName();
|
||||
QString text = ToQStr(f.second);
|
||||
|
||||
ScintillaEdit *scintilla = MakeEditor("scintilla" + name, text, true);
|
||||
|
||||
Reference in New Issue
Block a user