From: ronag Date: Fri, 21 Jan 2011 15:38:26 +0000 (+0000) Subject: 2.0.0.2: ogl_device: Destroy all pools on the context thread. X-Git-Tag: 2.0.1~803 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=768d9122aca3ed78322623ccee21e38de7f337b1;p=casparcg 2.0.0.2: ogl_device: Destroy all pools on the context thread. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@405 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- diff --git a/mixer/gpu/ogl_device.cpp b/mixer/gpu/ogl_device.cpp index 2fd19878c..0277e34d4 100644 --- a/mixer/gpu/ogl_device.cpp +++ b/mixer/gpu/ogl_device.cpp @@ -5,6 +5,8 @@ #include #include +#include + namespace caspar { namespace core { ogl_device::ogl_device() @@ -21,10 +23,10 @@ ogl_device::~ogl_device() { invoke([=] { - device_pools_[0].clear(); - device_pools_[1].clear(); - host_pools_[0].clear(); - host_pools_[1].clear(); + BOOST_FOREACH(auto& pool, device_pools_) + pool.clear(); + BOOST_FOREACH(auto& pool, host_pools_) + pool.clear(); }); }