From 2d558338bfa00802fb62e746a022185c812ac35b Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 10 Sep 2017 13:13:49 -0700 Subject: [PATCH] Qt: Copy framebuffers to avoid issues with frameskip (fixes #862) --- src/platform/qt/CoreController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/qt/CoreController.cpp b/src/platform/qt/CoreController.cpp index a639cdf46..bcdca745e 100644 --- a/src/platform/qt/CoreController.cpp +++ b/src/platform/qt/CoreController.cpp @@ -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(m_activeBuffer->data()), screenDimensions().width()); for (auto& action : m_frameActions) {