d3d10core/tests: Remove useless casts to self.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-02-11 22:34:57 +01:00 committed by Alexandre Julliard
parent ecacc39f09
commit 4f698de563

View file

@ -1648,7 +1648,7 @@ static void test_create_texture1d(void)
desc.Format = DXGI_FORMAT_R32G32B32A32_TYPELESS;
desc.BindFlags = D3D10_BIND_SHADER_RESOURCE;
desc.MiscFlags = 0;
hr = ID3D10Device_CreateTexture1D(device, &desc, NULL, (ID3D10Texture1D **)&texture);
hr = ID3D10Device_CreateTexture1D(device, &desc, NULL, &texture);
ok(hr == (i ? S_OK : E_INVALIDARG), "Test %u: Got unexpected hr %#x.\n", i, hr);
if (SUCCEEDED(hr))
ID3D10Texture1D_Release(texture);
@ -1979,7 +1979,7 @@ static void test_create_texture2d(void)
desc.Format = tests[i].format;
desc.BindFlags = tests[i].bind_flags;
desc.MiscFlags = tests[i].misc_flags;
hr = ID3D10Device_CreateTexture2D(device, &desc, NULL, (ID3D10Texture2D **)&texture);
hr = ID3D10Device_CreateTexture2D(device, &desc, NULL, &texture);
todo_wine_if(tests[i].todo)
ok(hr == (tests[i].succeeds ? S_OK : E_INVALIDARG),
@ -2223,7 +2223,7 @@ static void test_create_texture3d(void)
{
desc.Format = tests[i].format;
desc.BindFlags = tests[i].bind_flags;
hr = ID3D10Device_CreateTexture3D(device, &desc, NULL, (ID3D10Texture3D **)&texture);
hr = ID3D10Device_CreateTexture3D(device, &desc, NULL, &texture);
todo_wine_if(tests[i].todo)
ok(hr == (tests[i].succeeds ? S_OK : E_INVALIDARG), "Test %u: Got unexpected hr %#x.\n", i, hr);
@ -7634,8 +7634,8 @@ static void test_cube_maps(void)
{
for (j = 0; j < ARRAY_SIZE(data); ++j)
data[j] = sub_resource_idx;
ID3D10Device_UpdateSubresource(device, (ID3D10Resource *)texture, sub_resource_idx, NULL,
data, texture_desc.Width * sizeof(*data), 0);
ID3D10Device_UpdateSubresource(device, texture, sub_resource_idx, NULL, data,
texture_desc.Width * sizeof(*data), 0);
}
expected_result.y = expected_result.z = 0.0f;