Skip to content

Commit

Permalink
video-surface: delete framebuffer object in destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
i-rinat committed Jul 6, 2016
1 parent 655f46e commit a860f26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api-video-surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a860f26

Please sign in to comment.