summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2011-03-01 20:36:12 +0100
committerDaniel Vetter <[email protected]>2011-03-01 20:57:57 +0100
commit583eb139480fb1265b5106a09dcec8ce42d1124d (patch)
treebeb442ee6446a67f8c3b9e56d32ca44cb73185ba /src/gallium
parentd1fc920f613aa349e6721963e22e12c6eb49e3f9 (diff)
i915g: fix i915_winsys_batchbuffer_write
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i915/i915_batchbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_batchbuffer.h b/src/gallium/drivers/i915/i915_batchbuffer.h
index b4a91dabb37..ada713b0cb9 100644
--- a/src/gallium/drivers/i915/i915_batchbuffer.h
+++ b/src/gallium/drivers/i915/i915_batchbuffer.h
@@ -71,7 +71,7 @@ i915_winsys_batchbuffer_write(struct i915_winsys_batchbuffer *batch,
{
assert (i915_winsys_batchbuffer_space(batch) >= size);
- memcpy(data, batch->ptr, size);
+ memcpy(batch->ptr, data, size);
batch->ptr += size;
}