From 603bef557220d68dbb165e775c7c9b0d6db7709e Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Sat, 4 Sep 2010 05:13:06 +0200 Subject: [PATCH] mesa/st: add missing _mesa_set_fetch_functions in st_get_tex_image Fixes piglit fdo25614-genmipmap. --- src/mesa/state_tracker/st_cb_texture.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.30.2