From 4c454fd4abc29a8a45ef35c97a52dfe5070993cf Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 8 Oct 2014 08:47:21 +0200 Subject: [PATCH] wined3d: Only prepare the texture in device_update_volume(). --- dlls/wined3d/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index aa97c7d91ed..ee3636e6037 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3481,7 +3481,8 @@ static HRESULT device_update_volume(struct wined3d_device *device, context = context_acquire(device, NULL); - wined3d_volume_load(dst_volume, context, FALSE); + /* Only a prepare, since we're uploading the entire volume. */ + wined3d_texture_prepare_texture(dst_volume->container, context, FALSE); data.buffer_object = 0; data.addr = src.data;