OGL: Make ProgramShaderCache thread safe

This commit is contained in:
Stenzek 2018-02-24 22:14:31 +10:00
commit 00204dc988
2 changed files with 21 additions and 4 deletions

View file

@ -6,6 +6,7 @@
#include <atomic>
#include <memory>
#include <mutex>
#include <tuple>
#include <unordered_map>
@ -242,6 +243,7 @@ private:
static PCache pshaders;
static UberPCache ubershaders;
static PipelineProgramMap pipelineprograms;
static std::mutex pipelineprogramlock;
static PCacheEntry* last_entry;
static PCacheEntry* last_uber_entry;
static SHADERUID last_uid;