diff options
author | David Tardon <dtardon@redhat.com> | 2016-11-28 16:39:26 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-11-28 17:25:58 +0100 |
commit | c03090c97dddbeecf477b4832c3b0a78a68220a3 (patch) | |
tree | 7b5816094af85640391a9421d2160caf0698d824 /vcl/source/opengl/OpenGLContext.cxx | |
parent | 039261b3f63a8949fd0f20e7cb80d017f26c9f08 (diff) |
don't leak impl. details
Also, returning std::unique_ptr<>& doesn't make any sense.
Change-Id: Iefb2a0bfe614264bc7b5d15652fcc15243df3d06
Diffstat (limited to 'vcl/source/opengl/OpenGLContext.cxx')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 979e2bf32a98..f681dc21a4ec 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -707,7 +707,7 @@ OpenGLFramebuffer* OpenGLContext::AcquireFramebuffer( const OpenGLTexture& rText BindFramebuffer( pFramebuffer ); pFramebuffer->AttachTexture( rTexture ); - state()->viewport(Rectangle(Point(), Size(rTexture.GetWidth(), rTexture.GetHeight()))); + state().viewport(Rectangle(Point(), Size(rTexture.GetWidth(), rTexture.GetHeight()))); return pFramebuffer; } |