From: Steinar H. Gunderson Date: Tue, 23 Feb 2016 23:45:01 +0000 (+0100) Subject: Unbind the FBO after we are done with it, since reusing it in another context while... X-Git-Tag: 1.1.0~3 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=71fc6732eae50bb053e3a3618ab53280f72b4fff;p=nageru Unbind the FBO after we are done with it, since reusing it in another context while it is bound in the mixer is an error. --- diff --git a/mixer.cpp b/mixer.cpp index b3950a1..7edeb31 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -923,6 +923,8 @@ void Mixer::subsample_chroma(GLuint src_tex, GLuint dst_tex) glUseProgram(0); check_error(); + glBindFramebuffer(GL_FRAMEBUFFER, 0); + check_error(); resource_pool->release_fbo(fbo); glDeleteVertexArrays(1, &vao);