X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.cpp;h=ca6a7775eb56de0aab5b2e43dbe53a8003c34aaf;hp=c3e1fbaf11ac2c1001ee6b3e70c95f6c3c2207ac;hb=0cdd6e9e30a807056699ed9b3fa023a23ce83af9;hpb=09c983894685554b41f622dadd40ac1a4efc527d diff --git a/effect_chain.cpp b/effect_chain.cpp index c3e1fba..ca6a777 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -1519,18 +1519,8 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height CHECK(dither_effect->set_int("output_height", height)); } } else { - fbo = resource_pool->create_fbo(context, GL_RGBA16F, phase->output_width, phase->output_height); + fbo = resource_pool->create_fbo(context, output_textures[phase]); glBindFramebuffer(GL_FRAMEBUFFER, fbo); - check_error(); - glFramebufferTexture2D( - GL_FRAMEBUFFER, - GL_COLOR_ATTACHMENT0, - GL_TEXTURE_2D, - output_textures[phase], - 0); - check_error(); - GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); - assert(status == GL_FRAMEBUFFER_COMPLETE); glViewport(0, 0, phase->output_width, phase->output_height); }