mirror of https://github.com/mgba-emu/mgba.git
Qt: Copy framebuffers to avoid issues with frameskip (fixes #862)
This commit is contained in:
parent
ca4d53f014
commit
2d558338bf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue