i965/blorp: fix release build unused variable warning
[mesa.git] / src / mesa / state_tracker / st_gen_mipmap.c
index a14bbfabaa31b474e15771787ebe994af345b6d1..10af11e17b4f2af72be7e90179838e09de93086f 100644 (file)
@@ -40,6 +40,7 @@
 #include "st_context.h"
 #include "st_texture.h"
 #include "st_gen_mipmap.h"
+#include "st_cb_bitmap.h"
 #include "st_cb_texture.h"
 
 
@@ -96,6 +97,9 @@ st_generate_mipmap(struct gl_context *ctx, GLenum target,
    if (lastLevel == 0)
       return;
 
+   st_flush_bitmap_cache(st);
+   st_invalidate_readpix_cache(st);
+
    /* The texture isn't in a "complete" state yet so set the expected
     * lastLevel here, since it won't get done in st_finalize_texture().
     */