From: Steinar H. Gunderson Date: Wed, 3 Oct 2012 09:52:53 +0000 (+0200) Subject: Add a hack to restore the miplevels after blurring. X-Git-Tag: 1.0~410 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=ba19dad35d753c81041f9111fa4fd3bce168b319 Add a hack to restore the miplevels after blurring. --- diff --git a/effect_chain.cpp b/effect_chain.cpp index 899c6a3..b83e81e 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -394,5 +394,10 @@ void EffectChain::render_to_screen(unsigned char *src) glEnd(); check_error(); + + // HACK + glActiveTexture(GL_TEXTURE0); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 0); + check_error(); } }