GPU: Fix missing sync when hblank is pending
This commit is contained in:
parent
9d80c48d6f
commit
ef7d135492
|
@ -772,7 +772,8 @@ void GPU::UpdateCRTCTickEvent()
|
||||||
|
|
||||||
bool GPU::IsCRTCScanlinePending() const
|
bool GPU::IsCRTCScanlinePending() const
|
||||||
{
|
{
|
||||||
return (GetPendingCRTCTicks() + m_crtc_state.current_tick_in_scanline) >= m_crtc_state.horizontal_total;
|
const TickCount ticks = (GetPendingCRTCTicks() + m_crtc_state.current_tick_in_scanline);
|
||||||
|
return (ticks >= (m_crtc_state.in_hblank ? m_crtc_state.horizontal_total : m_crtc_state.horizontal_sync_start));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GPU::IsCommandCompletionPending() const
|
bool GPU::IsCommandCompletionPending() const
|
||||||
|
|
Loading…
Reference in New Issue