Michael Stefaniuc : d3d10core/tests: Remove useless casts to self.
Alexandre Julliard
julliard at winehq.org
Tue Feb 12 16:36:37 CST 2019
Module: wine
Branch: master
Commit: 4f698de563181363235a5a0b3922fe764fc33921
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4f698de563181363235a5a0b3922fe764fc33921
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Mon Feb 11 22:34:57 2019 +0100
d3d10core/tests: Remove useless casts to self.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d10core/tests/d3d10core.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/d3d10core/tests/d3d10core.c b/dlls/d3d10core/tests/d3d10core.c
index 5b8e7e1..9c322ed 100644
--- a/dlls/d3d10core/tests/d3d10core.c
+++ b/dlls/d3d10core/tests/d3d10core.c
@@ -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;
More information about the wine-cvs
mailing list