mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
GSP_GPU: Fix framebuffer dirty bit
This commit is contained in:
parent
cc84d6bd43
commit
02c2a505e0
1 changed files with 2 additions and 1 deletions
|
@ -362,7 +362,8 @@ void GSP_GPU::SignalInterruptForThread(InterruptId interrupt_id, u32 thread_id)
|
||||||
auto* info = GetFrameBufferInfo(thread_id, screen_id);
|
auto* info = GetFrameBufferInfo(thread_id, screen_id);
|
||||||
if (info->is_dirty) {
|
if (info->is_dirty) {
|
||||||
system.GPU().SetBufferSwap(screen_id, info->framebuffer_info[info->index]);
|
system.GPU().SetBufferSwap(screen_id, info->framebuffer_info[info->index]);
|
||||||
info->is_dirty.Assign(false);
|
// Decompiling the GSP module shows that the dirty bit is assigned 1 for top screen, 0 for bottom
|
||||||
|
info->is_dirty.Assign(screen_id == 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue