Add a hack to restore the miplevels after blurring.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 Oct 2012 09:52:53 +0000 (11:52 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 3 Oct 2012 09:52:53 +0000 (11:52 +0200)
effect_chain.cpp

index 899c6a3..b83e81e 100644 (file)
@@ -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();
        }
 }