Module: wine Branch: master Commit: d8723657d2fe78aba70fea3c58adaa7493fd5267 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8723657d2fe78aba70fea3c58...
Author: Paul Gofman gofmanp@gmail.com Date: Tue Jul 11 14:27:00 2017 +0300
d3dx9/tests: Add more tests for skip_constants effect parameter.
Signed-off-by: Paul Gofman gofmanp@gmail.com Signed-off-by: Matteo Bruni mbruni@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/d3dx9_36/tests/effect.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/d3dx9_36/tests/effect.c b/dlls/d3dx9_36/tests/effect.c index 5cf899f..9658d2d 100644 --- a/dlls/d3dx9_36/tests/effect.c +++ b/dlls/d3dx9_36/tests/effect.c @@ -6924,6 +6924,9 @@ static void test_effect_skip_constants(IDirect3DDevice9 *device) hr = D3DXCreateEffectEx(device, test_effect_skip_constants_blob, sizeof(test_effect_skip_constants_blob), NULL, NULL, "v4", 0, NULL, &effect, NULL); ok(hr == D3DERR_INVALIDCALL, "Got result %#x.\n", hr); + hr = D3DXCreateEffectEx(device, test_effect_skip_constants_blob, sizeof(test_effect_skip_constants_blob), + NULL, NULL, "v1;v5;v4", 0, NULL, &effect, NULL); + ok(hr == D3DERR_INVALIDCALL, "Got result %#x.\n", hr);
hr = D3DXCreateEffectEx(device, test_effect_skip_constants_blob, sizeof(test_effect_skip_constants_blob), NULL, NULL, " v1#,.+-= &\t\nv2*/!"'v5 v6[1]", 0, NULL, &effect, NULL); @@ -6939,6 +6942,8 @@ static void test_effect_skip_constants(IDirect3DDevice9 *device) "Unexpected IsParameterUsed result.\n"); ok(!effect->lpVtbl->IsParameterUsed(effect, "v5", "tech0"), "Unexpected IsParameterUsed result.\n"); + ok(!effect->lpVtbl->IsParameterUsed(effect, "v6", "tech0"), + "Unexpected IsParameterUsed result.\n");
hr = effect->lpVtbl->SetFloat(effect, "v1", 28.0f); ok(hr == D3D_OK, "Got result %#x.\n", hr);