diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-04-23 13:47:02 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-23 13:47:02 +0100 |
commit | bd4388e4f92d77d34e63858f1d818379e9b077de (patch) | |
tree | 1ae809768b12f9f2882139d80908225a3b3367cf /include | |
parent | 6cf6e2da24787e7a1238ba105e954946edd2c8cb (diff) |
Use shared_ptr for OpenGLPrograms, and hide its copy constructor.
Change-Id: Ia1352105acef1ededaf876a224ebc277121d6942
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index 80f785f95923..d2216e44918f 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -274,7 +274,7 @@ private: OUString fragmentShader; OString preamble; }; - boost::ptr_map<ProgramKey, OpenGLProgram> maPrograms; + std::map<ProgramKey, boost::shared_ptr<OpenGLProgram> > maPrograms; OpenGLProgram* mpCurrentProgram; #ifdef DBG_UTIL std::set<SalGraphicsImpl*> maParents; |