summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-04-15 00:27:25 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-04-15 01:51:27 +0200
commit3bd173af500d2e30f004cac4ca5a9309c5a49741 (patch)
treeb583ea83a29c803844645b1614b0edf400db0d7f /svx
parentd321709febe1222e582614b200e7c155b2f0ee7b (diff)
only render through OpenGL after successful context creation
Change-Id: I60ebceee2bf0eca1c7022e14fc43128347d682b5
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoopengl.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdoopengl.cxx b/svx/source/svdraw/svdoopengl.cxx
index df2f07b7d04b..ce11c0d71009 100644
--- a/svx/source/svdraw/svdoopengl.cxx
+++ b/svx/source/svdraw/svdoopengl.cxx
@@ -38,6 +38,7 @@ void SdrOpenGLObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fra
void SdrOpenGLObj::setRenderer(IOpenGLRenderer* pRenderer)
{
mpRenderer.reset(pRenderer);
+ mpRenderer->setInfoProvider(this);
}
IOpenGLRenderer* SdrOpenGLObj::getRenderer()
@@ -45,4 +46,9 @@ IOpenGLRenderer* SdrOpenGLObj::getRenderer()
return mpRenderer.get();
}
+bool SdrOpenGLObj::isOpenGLInitialized()
+{
+ return maContext.isInitialized();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */