mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
Merge pull request #552 from bunnei/setbufferswap-fix
GSP SetBufferSwap fix
This commit is contained in:
commit
76e7d41f88
1 changed files with 3 additions and 4 deletions
|
@ -227,14 +227,13 @@ void SignalInterrupt(InterruptId interrupt_id) {
|
||||||
// Update framebuffer information if requested
|
// Update framebuffer information if requested
|
||||||
// TODO(yuriks): Confirm where this code should be called. It is definitely updated without
|
// TODO(yuriks): Confirm where this code should be called. It is definitely updated without
|
||||||
// executing any GSP commands, only waiting on the event.
|
// executing any GSP commands, only waiting on the event.
|
||||||
for (int screen_id = 0; screen_id < 2; ++screen_id) {
|
int screen_id = (interrupt_id == InterruptId::PDC0) ? 0 : (interrupt_id == InterruptId::PDC0) ? 1 : -1;
|
||||||
|
if (screen_id != -1) {
|
||||||
FrameBufferUpdate* info = GetFrameBufferInfo(thread_id, screen_id);
|
FrameBufferUpdate* info = GetFrameBufferInfo(thread_id, screen_id);
|
||||||
|
|
||||||
if (info->is_dirty) {
|
if (info->is_dirty) {
|
||||||
SetBufferSwap(screen_id, info->framebuffer_info[info->index]);
|
SetBufferSwap(screen_id, info->framebuffer_info[info->index]);
|
||||||
|
info->is_dirty = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
info->is_dirty = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_interrupt_event->Signal();
|
g_interrupt_event->Signal();
|
||||||
|
|
Loading…
Reference in a new issue