gallium: fix texture border removal bug
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 1 May 2008 00:21:10 +0000 (18:21 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 1 May 2008 00:21:10 +0000 (18:21 -0600)
src/mesa/state_tracker/st_cb_texture.c

index 3d9c550d8c1d812f1b33209bd229de1ecbfe8d19..981246221b12237642798838051bb653e6d04fe8 100644 (file)
@@ -494,6 +494,10 @@ st_TexImage(GLcontext * ctx,
       strip_texture_border(border, &width, &height, &depth,
                            unpack, &unpackNB);
       unpack = &unpackNB;
+      texImage->Width = width;
+      texImage->Height = height;
+      texImage->Depth = depth;
+      texImage->Border = 0;
       border = 0;
    }