summaryrefslogtreecommitdiff
path: root/include/vcl/opengl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-11-28 16:39:26 +0100
committerDavid Tardon <dtardon@redhat.com>2016-11-28 17:25:58 +0100
commitc03090c97dddbeecf477b4832c3b0a78a68220a3 (patch)
tree7b5816094af85640391a9421d2160caf0698d824 /include/vcl/opengl
parent039261b3f63a8949fd0f20e7cb80d017f26c9f08 (diff)
don't leak impl. details
Also, returning std::unique_ptr<>& doesn't make any sense. Change-Id: Iefb2a0bfe614264bc7b5d15652fcc15243df3d06
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index e3e9ce0d2d83..e77a6e994d12 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -98,9 +98,9 @@ public:
OpenGLProgram* UseProgram( const OUString& rVertexShader, const OUString& rFragmentShader, const OString& preamble = "" );
void UseNoProgram();
- std::unique_ptr<RenderState>& state()
+ RenderState& state()
{
- return mpRenderState;
+ return *mpRenderState;
}
OpenGLCapabilitySwitch& getOpenGLCapabilitySwitch()