u_upload_mgr: add missing offset to src map in u_upload_buffer()
authorBrian Paul <brianp@vmware.com>
Tue, 12 Jul 2011 15:47:48 +0000 (09:47 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Jul 2011 15:48:01 +0000 (09:48 -0600)
Fixes regression from dda8d7ac3f0e5148d9738a57f7bc03216f6514d1

src/gallium/auxiliary/util/u_upload_mgr.c

index e50db6d67feb4615feef2f644c82feef6d5860e5..71fe53e3a273ce2b71abd3025606134dc623c30f 100644 (file)
@@ -257,7 +257,7 @@ enum pipe_error u_upload_buffer( struct u_upload_mgr *upload,
    ret = u_upload_data( upload,
                         min_out_offset,
                         size,
-                        map,
+                        map + offset,
                         out_offset,
                         outbuf, flushed );