From: Luca Barbieri Date: Sat, 4 Sep 2010 03:13:06 +0000 (+0200) Subject: mesa/st: add missing _mesa_set_fetch_functions in st_get_tex_image X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=603bef557220d68dbb165e775c7c9b0d6db7709e;p=mesa.git mesa/st: add missing _mesa_set_fetch_functions in st_get_tex_image Fixes piglit fdo25614-genmipmap. --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 9eb14033eeb..124cd32e13e 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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,