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

oldstable
Józef Kucia 2012-07-03 16:06:44 +02:00 committed by Alexandre Julliard
parent 0ad6af9caa
commit 83c7fed1b0
1 changed files with 1 additions and 1 deletions

View File

@ -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,