.. ocv:function:: void ogl::Buffer::release()
+The function will call `setAutoRelease(true)` .
+
ogl::Buffer::setAutoRelease
.. ocv:function:: void ogl::Texture2D::release()
+The function will call `setAutoRelease(true)` .
+
ogl::Texture2D::setAutoRelease
void cv::ogl::Buffer::release()
{
#ifdef HAVE_OPENGL
+ if (impl_)
+ impl_->setAutoRelease(true);
impl_ = Impl::empty();
rows_ = 0;
cols_ = 0;
void cv::ogl::Texture2D::release()
{
#ifdef HAVE_OPENGL
+ if (impl_)
+ impl_->setAutoRelease(true);
impl_ = Impl::empty();
rows_ = 0;
cols_ = 0;