gl_rasterizer_cache: Use dirty flags for color buffers

This commit is contained in:
ReinUsesLisp
2019-01-07 01:11:03 -03:00
parent 0ab17ab406
commit 179ee963db
4 changed files with 24 additions and 4 deletions

View File

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