summaryrefslogtreecommitdiff
path: root/vcl/source/window/openglwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/openglwin.cxx')
-rw-r--r--vcl/source/window/openglwin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx
index 7f160668d16d..cfe6e6af1fc4 100644
--- a/vcl/source/window/openglwin.cxx
+++ b/vcl/source/window/openglwin.cxx
@@ -15,7 +15,7 @@ class OpenGLWindowImpl
{
public:
OpenGLWindowImpl(Window* pWindow);
- OpenGLContext* getContext() { return &maContext;}
+ OpenGLContext& getContext() { return maContext;}
private:
OpenGLContext maContext;
boost::scoped_ptr<SystemChildWindow> mpChildWindow;
@@ -43,7 +43,7 @@ OpenGLWindow::~OpenGLWindow()
mpRenderer->contextDestroyed();
}
-OpenGLContext* OpenGLWindow::getContext()
+OpenGLContext& OpenGLWindow::getContext()
{
return mpImpl->getContext();
}