The OpenGL context needs to be current only while flushing
the backing store.
Change-Id: I4d6a10f22bcfe04f35a14a690180237f6c691829
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
Q_UNUSED(region);
Q_UNUSED(offset);
+ makeCurrent();
+
#ifdef QEGL_EXTRA_DEBUG
qWarning("QEglBackingStore::flush %p", window);
#endif
cursor->render();
m_context->swapBuffers(window);
+
+ m_context->doneCurrent();
}
void QEglFSBackingStore::makeCurrent()
void QEglFSBackingStore::beginPaint(const QRegion &rgn)
{
- makeCurrent();
-
m_dirty = m_dirty | rgn;
}