Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-11-30 12:17:01 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:47:43 +0300
commit81ee600840fac489bbc7c6679b494060d24ffc45 (patch)
tree8b9a14c4f5ed7730689a01425b42d72663b7a5d7 /qt_tstfrm
parent9ce0961712eb176b2f02b761c6e4e8491270e73b (diff)
every graphics::Screen should contain RenderContext.
Diffstat (limited to 'qt_tstfrm')
-rw-r--r--qt_tstfrm/tstwidgets.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt_tstfrm/tstwidgets.cpp b/qt_tstfrm/tstwidgets.cpp
index dc114763c6..a761246138 100644
--- a/qt_tstfrm/tstwidgets.cpp
+++ b/qt_tstfrm/tstwidgets.cpp
@@ -42,6 +42,8 @@ void GLDrawWidget::initializeGL()
m_primaryContext = make_shared_ptr(new qt::gl::RenderContext(this));
+ m_primaryContext->startThreadDrawing();
+
graphics::ResourceManager::Params rmp;
rmp.m_rtFormat = graphics::Data8Bpp;
@@ -142,6 +144,7 @@ void GLDrawWidget::initializeGL()
params.m_resourceManager = m_resourceManager;
params.m_frameBuffer = m_frameBuffer;
params.m_threadSlot = m_resourceManager->guiThreadSlot();
+ params.m_renderContext = m_primaryContext;
m_p = make_shared_ptr(new graphics::Screen(params));