mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WINESYNC] d3dx9/tests: Actually test the return of the effect SetInt() call.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 7e01ec6018c062d11b29ba2b9a2056d98e8bc406 by Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
8cc1ec1b82
commit
2fcf99a2c3
2 changed files with 11 additions and 9 deletions
|
@ -7197,11 +7197,12 @@ static void test_effect_unsupported_shader(void)
|
|||
|
||||
hr = effect->lpVtbl->ValidateTechnique(effect, "tech1");
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
hr = effect->lpVtbl->ValidateTechnique(effect, "tech1");
|
||||
ok(hr == E_FAIL, "Got result %#x.\n", hr);
|
||||
effect->lpVtbl->SetInt(effect, "i", 0);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 0);
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
hr = effect->lpVtbl->ValidateTechnique(effect, "tech1");
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
|
||||
|
@ -7244,7 +7245,7 @@ static void test_effect_unsupported_shader(void)
|
|||
HeapFree(GetProcessHeap(), 0, byte_code);
|
||||
IDirect3DVertexShader9_Release(vshader);
|
||||
|
||||
effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
hr = effect->lpVtbl->CommitChanges(effect);
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
|
@ -7336,16 +7337,16 @@ static void test_effect_null_shader(void)
|
|||
|
||||
hr = effect->lpVtbl->ValidateTechnique(effect, "tech0");
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
effect->lpVtbl->SetInt(effect, "i", 0);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 0);
|
||||
ok(hr == D3D_OK, "Failed to set parameter, hr %#x.\n", hr);
|
||||
hr = effect->lpVtbl->ValidateTechnique(effect, "tech1");
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
ok(hr == D3D_OK, "Failed to set parameter, hr %#x.\n", hr);
|
||||
hr = effect->lpVtbl->ValidateTechnique(effect, "tech1");
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
|
||||
effect->lpVtbl->SetInt(effect, "i", 2);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 2);
|
||||
ok(hr == D3D_OK, "Failed to set parameter, hr %#x.\n", hr);
|
||||
hr = effect->lpVtbl->ValidateTechnique(effect, "tech1");
|
||||
ok(hr == E_FAIL, "Got result %#x.\n", hr);
|
||||
|
@ -7953,7 +7954,7 @@ static void test_effect_find_next_valid_technique(void)
|
|||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
ok(!strcmp(desc.Name, "tech0"), "Got unexpected technique %s.\n", desc.Name);
|
||||
|
||||
effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 1);
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
|
||||
tech = (D3DXHANDLE)0xdeadbeef;
|
||||
|
@ -7966,7 +7967,8 @@ static void test_effect_find_next_valid_technique(void)
|
|||
hr = effect->lpVtbl->FindNextValidTechnique(effect, tech, &tech);
|
||||
ok(hr == S_FALSE, "Got result %#x.\n", hr);
|
||||
|
||||
effect->lpVtbl->SetInt(effect, "i", 0);
|
||||
hr = effect->lpVtbl->SetInt(effect, "i", 0);
|
||||
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
|
||||
|
||||
hr = effect->lpVtbl->FindNextValidTechnique(effect, tech, &tech);
|
||||
ok(hr == D3D_OK, "Got result %#x.\n", hr);
|
||||
|
|
|
@ -33,4 +33,4 @@ files:
|
|||
include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h
|
||||
tags:
|
||||
wine: wine-4.1
|
||||
wine: 7e01ec6018c062d11b29ba2b9a2056d98e8bc406
|
||||
|
|
Loading…
Reference in a new issue