[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - chart2/source

Markus Mohrhard markus.mohrhard at googlemail.com
Thu Jul 10 03:02:30 PDT 2014


 chart2/source/view/main/OpenGLRender.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 606af1462d81ac5188e0a6a3a1c270a327a68fd4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Thu Jul 10 11:16:40 2014 +0200

    we need to make sure the context is current
    
    Change-Id: Ia3d9df493899949f8de096f1cb0a3b63bffac0eb
    Reviewed-on: https://gerrit.libreoffice.org/10184
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index 6884098..b325f1e 100644
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -346,6 +346,7 @@ void OpenGLRender::renderDebug()
 
 void OpenGLRender::prepareToRender()
 {
+    aContext.makeCurrent();
     aContext.setWinSize(Size(m_iWidth, m_iHeight));
     glViewport(0, 0, m_iWidth, m_iHeight);
     if (!m_FboID[0])


More information about the Libreoffice-commits mailing list