mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 01:37:49 +00:00
gl_rasterizer_cache: Use dirty flags for color buffers
This commit is contained in:
parent
5fec808e30
commit
6e932fe118
4 changed files with 24 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue