From a860f26f1d7b0c0199e39b192c0ada7599d69e96 Mon Sep 17 00:00:00 2001 From: Rinat Ibragimov Date: Wed, 6 Jul 2016 22:13:57 +0300 Subject: [PATCH] video-surface: delete framebuffer object in destructor --- src/api-video-surface.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api-video-surface.cc b/src/api-video-surface.cc index 93dd9af..bfc832e 100644 --- a/src/api-video-surface.cc +++ b/src/api-video-surface.cc @@ -123,7 +123,9 @@ Resource::~Resource() try { { GLXThreadLocalContext guard{device}; + glDeleteTextures(1, &tex_id); + glDeleteFramebuffers(1, &fbo_id); const auto gl_error = glGetError(); if (gl_error != GL_NO_ERROR)