mesa/st: add missing _mesa_set_fetch_functions in st_get_tex_image
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 4 Sep 2010 03:13:06 +0000 (05:13 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 4 Sep 2010 03:13:06 +0000 (05:13 +0200)
Fixes piglit fdo25614-genmipmap.

src/mesa/state_tracker/st_cb_texture.c

index 9eb14033eeb57765cab10a19e1eebd6ee8e2b7dd..124cd32e13e014d98d60923730371ae3b3a94834 100644 (file)
@@ -996,6 +996,8 @@ st_get_tex_image(GLcontext * ctx, GLenum target, GLint level,
 
    dest = (GLubyte *) pixels;
 
+   _mesa_set_fetch_functions(texImage, get_texture_dims(target));
+
    for (i = 0; i < depth; i++) {
       if (compressed_dst) {
         _mesa_get_compressed_teximage(ctx, target, level, dest,