Kaydet (Commit) 7d9d7ed9 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

fdo#83518: We need the GL context when rendering text.

Change-Id: I5e14dbb4f74000fe49aae9d864fa69266c131d53
üst 9222f3c2
...@@ -423,6 +423,7 @@ void RenderBenchMarkThread::UpdateScreenText() ...@@ -423,6 +423,7 @@ void RenderBenchMarkThread::UpdateScreenText()
{ {
if (mpChart->mbScreenTextNewRender) if (mpChart->mbScreenTextNewRender)
{ {
mpChart->mpWindow->getContext().makeCurrent();
mpChart->mpRenderer->ReleaseScreenTextTexture(); mpChart->mpRenderer->ReleaseScreenTextTexture();
for(boost::ptr_vector<opengl3D::Renderable3DObject>::iterator itr = mpChart->maScreenTextShapes.begin(), for(boost::ptr_vector<opengl3D::Renderable3DObject>::iterator itr = mpChart->maScreenTextShapes.begin(),
itrEnd = mpChart->maScreenTextShapes.end(); itr != itrEnd; ++itr) itrEnd = mpChart->maScreenTextShapes.end(); itr != itrEnd; ++itr)
...@@ -430,6 +431,7 @@ void RenderBenchMarkThread::UpdateScreenText() ...@@ -430,6 +431,7 @@ void RenderBenchMarkThread::UpdateScreenText()
itr->render(); itr->render();
} }
mpChart->mbScreenTextNewRender = false; mpChart->mbScreenTextNewRender = false;
mpChart->mpWindow->getContext().resetCurrent();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment