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:
Pokechu22 2022-04-22 16:37:43 -07:00
parent 2e01dc0c82
commit 7ae71e643e

View file

@ -171,6 +171,7 @@ static std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage,
stream << "\n";
stream << "Dolphin Version: " + Common::GetScmRevStr() + "\n";
stream << "Video Backend: " + g_video_backend->GetDisplayName();
stream.close();
PanicAlertFmt("{} (written to {})", msg, filename);
};