mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
Clear shader disk cache on exit to prevent stale cache crashes
This commit is contained in:
parent
b1e537a485
commit
2c75b173d6
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue