d3d9/tests: Get rid of some pointless BeginScene() checks.

This commit is contained in:
Henri Verbeet 2014-04-14 09:59:25 +02:00 committed by Alexandre Julliard
parent c3ee3da58a
commit 3ae4889eeb
2 changed files with 1244 additions and 1432 deletions

View File

@ -1948,14 +1948,11 @@ static void test_null_stream(void)
ok(SUCCEEDED(hr), "IDirect3DDevice9_SetVertexDeclaration failed (0x%08x)\n", hr);
hr = IDirect3DDevice9_BeginScene(device);
ok(hr == D3D_OK, "IDirect3DDevice9_BeginScene failed (0x%08x)\n", hr);
if(SUCCEEDED(hr)) {
hr = IDirect3DDevice9_DrawPrimitive(device, D3DPT_POINTLIST, 0, 1);
ok(SUCCEEDED(hr), "IDirect3DDevice9_DrawPrimitive failed (0x%08x)\n", hr);
hr = IDirect3DDevice9_EndScene(device);
ok(hr == D3D_OK, "IDirect3DDevice9_EndScene failed (0x%08x)\n", hr);
}
ok(SUCCEEDED(hr), "Failed to begin scene, hr %#x.\n", hr);
hr = IDirect3DDevice9_DrawPrimitive(device, D3DPT_POINTLIST, 0, 1);
ok(SUCCEEDED(hr), "Failed to draw, hr %#x.\n", hr);
hr = IDirect3DDevice9_EndScene(device);
ok(SUCCEEDED(hr), "Failed to end scene, hr %#x.\n", hr);
IDirect3DDevice9_SetStreamSource(device, 0, NULL, 0, 0);
IDirect3DDevice9_SetVertexShader(device, NULL);

File diff suppressed because it is too large Load Diff