Qt: Copy framebuffers to avoid issues with frameskip (fixes #862)

This commit is contained in:
Vicki Pfau 2017-09-10 13:13:49 -07:00
parent ca4d53f014
commit 2d558338bf
1 changed files with 2 additions and 0 deletions

View File

@ -736,6 +736,8 @@ void CoreController::finishFrame() {
if (m_activeBuffer == m_completeBuffer) {
m_activeBuffer = &m_buffers[1];
}
// Copy contents to avoid issues when doing frameskip
*m_activeBuffer = *m_completeBuffer;
m_threadContext.core->setVideoBuffer(m_threadContext.core, reinterpret_cast<color_t*>(m_activeBuffer->data()), screenDimensions().width());
for (auto& action : m_frameActions) {