]> git.sesse.net Git - movit/commitdiff
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 899c6a3f4ca9335e518cd3939a452cafe6955801..b83e81e78a9146339f1a8293f2cc6d5c08eb93cb 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();
        }
 }