possibly closed #333 for Desktop version.

This commit is contained in:
rachytski 2011-09-21 21:37:16 +03:00 committed by Alex Zolotarev
parent 5f35bc7583
commit 686bfc4477
2 changed files with 8 additions and 0 deletions

View file

@ -174,6 +174,10 @@ namespace qt
m_framework->BeginPaint();
shared_ptr<PaintEvent> paintEvent(new PaintEvent(p.get()));
m_framework->DoPaint(paintEvent);
/// swapping buffers before ending the frame, see issue #333
swapBuffers();
m_framework->EndPaint();
}

View file

@ -24,6 +24,9 @@ namespace qt
void GLDrawWidget::initializeGL()
{
/// we'll perform swap by ourselves, see issue #333
setAutoBufferSwap(false);
if (m_p == 0)
{
#ifdef OMIM_OS_WINDOWS
@ -75,6 +78,7 @@ namespace qt
p.m_glyphCacheID = m_resourceManager->guiThreadGlyphCacheID();
p.m_skinName = GetPlatform().SkinName();
p.m_visualScale = GetPlatform().VisualScale();
p.m_isSynchronized = true;
m_p = shared_ptr<DrawerYG>(new DrawerYG(p));
}