]> git.sesse.net Git - movit/blobdiff - effect_chain.cpp
Add a hack to restore the miplevels after blurring.
[movit] / 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();
        }
 }