DepthRenderer::~DepthRenderer() { TextureManager* texMgr = TextureManager::getSingletonPtr(); // Destroy render texture. if (!mDepthRenderTexture.isNull ()) { texMgr->remove (mDepthRenderTexture->getHandle ()); mDepthRenderTexture.setNull (); } }
GPUEntities::~GPUEntities() { TextureManager* texMgr = TextureManager::getSingletonPtr(); texMgr->remove(_gpuEntsData.c_str()); texMgr->remove(_imposterTex.c_str()); }