mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-20 11:21:43 +02:00
Vulkan: Close the output stream on shader compile error before showing the panic alert
This fixes the file showing up as 0 bytes in Windows Explorer (although the file would still display properly when opened).
This commit is contained in:
parent
2e01dc0c82
commit
7ae71e643e
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ static std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage,
|
||||||
stream << "\n";
|
stream << "\n";
|
||||||
stream << "Dolphin Version: " + Common::GetScmRevStr() + "\n";
|
stream << "Dolphin Version: " + Common::GetScmRevStr() + "\n";
|
||||||
stream << "Video Backend: " + g_video_backend->GetDisplayName();
|
stream << "Video Backend: " + g_video_backend->GetDisplayName();
|
||||||
|
stream.close();
|
||||||
|
|
||||||
PanicAlertFmt("{} (written to {})", msg, filename);
|
PanicAlertFmt("{} (written to {})", msg, filename);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue