[Mesa-dev] [PATCH] mesa/st: add missing (?) _mesa_set_fetch_functions

Luca Barbieri luca at luca-barbieri.com
Thu Aug 19 08:26:15 PDT 2010


This fixes the piglit fdo25614-genmipmap test.

Not sure if this is the right place to put it though.
---
 src/mesa/state_tracker/st_cb_texture.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index a41c780..1ede1ad 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -988,6 +988,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,
-- 
1.7.0.4



More information about the mesa-dev mailing list