Commit 83c7fed1 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3dx9: Fix D3DXLoadVolumeFromVolume so it works for subsets of volumes.

parent 0ad6af9c
......@@ -174,7 +174,7 @@ HRESULT WINAPI D3DXLoadVolumeFromVolume(IDirect3DVolume9 *dst_volume,
}
else box = *src_box;
hr = IDirect3DVolume9_LockBox(src_volume, &locked_box, &box, D3DLOCK_READONLY);
hr = IDirect3DVolume9_LockBox(src_volume, &locked_box, NULL, D3DLOCK_READONLY);
if (FAILED(hr)) return hr;
hr = D3DXLoadVolumeFromMemory(dst_volume, dst_palette, dst_box,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment