d3dx9_36: Remove casts to the type of the casted expression.

This commit is contained in:
Michael Stefaniuc 2011-09-20 15:50:47 +02:00 committed by Alexandre Julliard
parent 952699e843
commit 977308365d
2 changed files with 3 additions and 3 deletions

View File

@ -1243,7 +1243,7 @@ static HRESULT WINAPI ID3DXMeshImpl_OptimizeInplace(ID3DXMesh *iface, DWORD flag
return E_NOTIMPL;
}
hr = iface->lpVtbl->LockIndexBuffer(iface, 0, (void**)&indices);
hr = iface->lpVtbl->LockIndexBuffer(iface, 0, &indices);
if (FAILED(hr)) goto cleanup;
dword_indices = HeapAlloc(GetProcessHeap(), 0, This->numfaces * 3 * sizeof(DWORD));
@ -3010,7 +3010,7 @@ static HRESULT load_skin_mesh_from_xof(IDirectXFileData *filedata,
}
d3dxmesh->lpVtbl->UnlockVertexBuffer(d3dxmesh);
hr = d3dxmesh->lpVtbl->LockIndexBuffer(d3dxmesh, 0, (void**)&indices);
hr = d3dxmesh->lpVtbl->LockIndexBuffer(d3dxmesh, 0, &indices);
if (FAILED(hr)) goto cleanup;
index_in_ptr = mesh_data.indices;

View File

@ -2268,7 +2268,7 @@ static void test_D3DXFloat_Array(void)
out = D3DXFloat32To16Array(&half, &single, 0);
ok(out == &half, "Got %p, expected %p.\n", out, &half);
out = D3DXFloat16To32Array(&single, (D3DXFLOAT16 *)&half, 0);
out = D3DXFloat16To32Array(&single, &half, 0);
ok(out == &single, "Got %p, expected %p.\n", out, &single);
for (i = 0; i < sizeof(testdata)/sizeof(testdata[0]); i++)