X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.cpp;h=574c44e2a68a0c7dac6e5ff43693a628c7ae61af;hp=00151977be63823288cd0d1c9497e7b9d2708fdb;hb=09cf0231a4da74583b9c5ea7a54a2cf6efca3515;hpb=37f56fcbe571b2322243f6de59494bf9e0cbb37a diff --git a/effect_chain.cpp b/effect_chain.cpp index 0015197..574c44e 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -1559,6 +1559,8 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height // Last phase goes to the output the user specified. glBindFramebuffer(GL_FRAMEBUFFER, dest_fbo); check_error(); + GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); + assert(status == GL_FRAMEBUFFER_COMPLETE); glViewport(x, y, width, height); if (dither_effect != NULL) { CHECK(dither_effect->set_int("output_width", width)); @@ -1573,6 +1575,8 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height output_node->output_texture, 0); check_error(); + GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); + assert(status == GL_FRAMEBUFFER_COMPLETE); glViewport(0, 0, phases[phase]->output_width, phases[phase]->output_height); }