[Libreoffice-commits] core.git: Branch 'feature/chart_opengl_window' - chart2/source

Zolnai Tamás tamas.zolnai at collabora.com
Fri Aug 22 09:34:57 PDT 2014


 chart2/source/view/charttypes/GL3DBarChart.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 35c947ce0a63e71aa438ebb0bd107923995d7b2e
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date:   Fri Aug 22 18:31:31 2014 +0200

    Call resetCurrent as soon as possible to avoid conflict with other thread
    
    Change-Id: Ie3edc252135301ba5b85b80edcdbe75537d0da16

diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index af6f20c..cabfe41 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -113,7 +113,7 @@ void RenderThread::renderFrame()
     mpChart->mpRenderer->ProcessUnrenderedShape(mpChart->mbNeedsNewRender);
     mpChart->mbNeedsNewRender = false;
     mpChart->mpWindow->getContext().swapBuffers();
-
+    mpChart->mpWindow->getContext().resetCurrent();
 }
 
 class RenderOneFrameThread : public RenderThread


More information about the Libreoffice-commits mailing list