r300g: Initialize base.bind member variable.
authorVinson Lee <vlee@vmware.com>
Mon, 12 Apr 2010 01:19:24 +0000 (18:19 -0700)
committerVinson Lee <vlee@vmware.com>
Mon, 12 Apr 2010 01:19:24 +0000 (18:19 -0700)
The base.bind member variable was never initialized.

src/gallium/drivers/r300/r300_transfer.c

index 8dc705a7d4ff42d9d53e5448f1fe23a162f62c31..e4df7504550fd2efd7103da31cc16b0c937e42b7 100644 (file)
@@ -155,6 +155,7 @@ r300_texture_get_transfer(struct pipe_context *ctx,
             base.last_level = 0;
             base.nr_samples = 0;
             base._usage = PIPE_USAGE_DYNAMIC;
+            base.bind = 0;
            base.flags = R300_RESOURCE_FLAG_TRANSFER;
 
             /* For texture reading, the temporary (detiled) texture is used as