Clear shader disk cache on exit to prevent stale cache crashes

This commit is contained in:
TETYAH-PRIME 2026-05-27 13:54:32 -04:00
parent b1e537a485
commit 2c75b173d6

View file

@ -353,7 +353,9 @@ ShaderProgramManager::ShaderProgramManager(Frontend::EmuWindow& emu_window_, con
strict_context_required{emu_window.StrictContextRequired()},
impl{std::make_unique<Impl>(driver_, title_id, separable)} {}
ShaderProgramManager::~ShaderProgramManager() = default;
ShaderProgramManager::~ShaderProgramManager() {
impl->disk_cache.InvalidateAll();
}
bool ShaderProgramManager::UseProgrammableVertexShader(const Pica::RegsInternal& regs,
Pica::ShaderSetup& setup,