gl_shader_cache: Use dirty flags for shaders

This commit is contained in:
ReinUsesLisp
2019-01-06 03:58:43 -03:00
parent 59c665b28e
commit 0ab17ab406
5 changed files with 23 additions and 2 deletions

View File

@ -1089,10 +1089,13 @@ public:
MemoryManager& memory_manager;
struct DirtyFlags {
bool shaders = true;
bool vertex_attrib_format = true;
u32 vertex_array = 0xFFFFFFFF;
void OnMemoryWrite() {
shaders = true;
vertex_array = 0xFFFFFFFF;
}
};