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)