David Adam : d3d8/d3d9: Remove unconsistent tests for SetMaterial.
Alexandre Julliard
julliard at winehq.org
Fri Aug 22 04:44:04 CDT 2008
Module: wine
Branch: master
Commit: acaeb9204269cbaed230ea61acdc1a4b0296603e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=acaeb9204269cbaed230ea61acdc1a4b0296603e
Author: David Adam <david.adam.cnrs at gmail.com>
Date: Thu Aug 21 18:35:00 2008 +0200
d3d8/d3d9: Remove unconsistent tests for SetMaterial.
---
dlls/d3d8/tests/device.c | 38 --------------------------------------
dlls/d3d9/tests/device.c | 36 ------------------------------------
2 files changed, 0 insertions(+), 74 deletions(-)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index d40f196..c3aa591 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -1283,43 +1283,6 @@ static void test_render_zero_triangles(void)
if(d3d8) IDirect3D8_Release(d3d8);
}
-static void test_set_material(void)
-{
- D3DPRESENT_PARAMETERS present_parameters;
- IDirect3DDevice8 *device = NULL;
- IDirect3D8 *d3d8;
- HWND hwnd;
- HRESULT hr;
-
- d3d8 = pDirect3DCreate8( D3D_SDK_VERSION );
- ok(d3d8 != NULL, "Failed to create IDirect3D8 object\n");
- hwnd = CreateWindow( "static", "d3d8_test", WS_OVERLAPPEDWINDOW, 100, 100, 160, 160, NULL, NULL, NULL, NULL );
- ok(hwnd != NULL, "Failed to create window\n");
- if (!d3d8 || !hwnd) goto cleanup;
-
- ZeroMemory(&present_parameters, sizeof(present_parameters));
- present_parameters.Windowed = TRUE;
- present_parameters.hDeviceWindow = hwnd;
- present_parameters.SwapEffect = D3DSWAPEFFECT_DISCARD;
-
- hr = IDirect3D8_CreateDevice( d3d8, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd,
- D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_PUREDEVICE, &present_parameters, &device );
- ok(hr == D3D_OK || hr == D3DERR_NOTAVAILABLE || hr == D3DERR_INVALIDCALL,
- "IDirect3D8_CreateDevice failed with %08x\n", hr);
- if(!device)
- {
- skip("Failed to create a d3d device\n");
- goto cleanup;
- }
-
- hr = IDirect3DDevice8_SetMaterial(device, NULL);
- ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %08x\n", hr);
-
- cleanup:
- if(device) IDirect3DDevice8_Release(device);
- if(d3d8) IDirect3D8_Release(d3d8);
-}
-
START_TEST(device)
{
HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
@@ -1345,6 +1308,5 @@ START_TEST(device)
test_limits();
test_lights();
test_render_zero_triangles();
- test_set_material();
}
}
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index 3a56298..3164b81 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -2016,41 +2016,6 @@ static void test_display_formats()
if(d3d9) IDirect3D9_Release(d3d9);
}
-static void test_set_material(void)
-{
- D3DPRESENT_PARAMETERS present_parameters;
- IDirect3DDevice9 *device = NULL;
- IDirect3D9 *d3d9;
- HWND hwnd;
- HRESULT hr;
-
- d3d9 = pDirect3DCreate9( D3D_SDK_VERSION );
- ok(d3d9 != NULL, "Failed to create IDirect3D9 object\n");
- hwnd = CreateWindow( "static", "d3d9_test", WS_OVERLAPPEDWINDOW, 100, 100, 160, 160, NULL, NULL, NULL, NULL );
- ok(hwnd != NULL, "Failed to create window\n");
- if (!d3d9 || !hwnd) goto cleanup;
-
- ZeroMemory(&present_parameters, sizeof(present_parameters));
- present_parameters.Windowed = TRUE;
- present_parameters.hDeviceWindow = hwnd;
- present_parameters.SwapEffect = D3DSWAPEFFECT_DISCARD;
-
- IDirect3D9_CreateDevice( d3d9, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd,
- D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_PUREDEVICE, &present_parameters, &device );
- if(!device)
- {
- skip("Failed to create a d3d device\n");
- goto cleanup;
- }
-
- hr = IDirect3DDevice9_SetMaterial(device, NULL);
- ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %08x\n", hr);
-
- cleanup:
- if(device) IDirect3DDevice9_Release(device);
- if(d3d9) IDirect3D9_Release(d3d9);
-}
-
START_TEST(device)
{
HMODULE d3d9_handle = LoadLibraryA( "d3d9.dll" );
@@ -2080,6 +2045,5 @@ START_TEST(device)
test_vertex_buffer_alignment();
test_lights();
test_set_stream_source();
- test_set_material();
}
}
More information about the wine-cvs
mailing list