OGL: Reload shader cache when relevant video config changes

This commit is contained in:
Stenzek
2017-06-24 19:20:34 +10:00
parent d1381f5021
commit 62a901508b
4 changed files with 103 additions and 57 deletions

View File

@ -72,6 +72,7 @@ public:
static void UploadConstants();
static void Init();
static void Reload();
static void Shutdown();
static void CreateHeader();
@ -82,6 +83,10 @@ private:
void Read(const SHADERUID& key, const u8* value, u32 value_size) override;
};
static void LoadProgramBinaries();
static void SaveProgramBinaries();
static void DestroyShaders();
typedef std::map<SHADERUID, PCacheEntry> PCache;
static PCache pshaders;
static PCacheEntry* last_entry;