gl_rasterizer_cache: Use dirty flags for the depth buffer

This commit is contained in:
ReinUsesLisp
2019-01-07 02:09:39 -03:00
parent 179ee963db
commit b683e41fca
4 changed files with 23 additions and 3 deletions

View File

@ -1090,6 +1090,7 @@ public:
struct DirtyFlags {
u8 color_buffer = 0xFF;
bool zeta_buffer = true;
bool shaders = true;
@ -1098,6 +1099,7 @@ public:
void OnMemoryWrite() {
color_buffer = 0xFF;
zeta_buffer = true;
shaders = true;
vertex_array = 0xFFFFFFFF;
}