From 583eb139480fb1265b5106a09dcec8ce42d1124d Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 1 Mar 2011 20:36:12 +0100 Subject: [PATCH] i915g: fix i915_winsys_batchbuffer_write Signed-off-by: Daniel Vetter --- src/gallium/drivers/i915/i915_batchbuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2