r600g: Implement GL_ARB_texture_gather
[mesa.git] / src / mesa / state_tracker / st_atom_pixeltransfer.c
index 306eeb153aaf0529aced55292229c6df12c78bcb..a04163cc137a8fec8e00d8442e6715f589a9db49 100644 (file)
@@ -121,7 +121,7 @@ load_color_map_texture(struct gl_context *ctx, struct pipe_resource *pt)
          rgba[2] = ctx->PixelMaps.BtoB.Map[j * bSize / texSize];
          rgba[3] = ctx->PixelMaps.AtoA.Map[i * aSize / texSize];
          util_pack_color(rgba, pt->format, &uc);
-         *(dest + k) = uc.ui;
+         *(dest + k) = uc.ui[0];
       }
    }