gl_shader_cache: Use dirty flags for shaders

This commit is contained in:
ReinUsesLisp 2019-01-06 03:58:43 -03:00
parent ea7c477b8a
commit 5fec808e30
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;
}
};