mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06: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:
@ -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);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user