Qt: Draw frame even if it times out

This commit is contained in:
Jeffrey Pfau 2015-02-22 22:14:26 -08:00
parent afbadf242b
commit 1ff9968a90
1 changed files with 2 additions and 3 deletions

View File

@ -214,9 +214,8 @@ void Painter::start() {
void Painter::draw() { void Painter::draw() {
m_gl->makeCurrent(); m_gl->makeCurrent();
if (GBASyncWaitFrameStart(&m_context->sync, m_context->frameskip)) { GBASyncWaitFrameStart(&m_context->sync, m_context->frameskip);
performDraw(); performDraw();
}
GBASyncWaitFrameEnd(&m_context->sync); GBASyncWaitFrameEnd(&m_context->sync);
m_gl->swapBuffers(); m_gl->swapBuffers();
m_gl->doneCurrent(); m_gl->doneCurrent();