Commit bf591220 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3d9/tests: Don't create a Null-shader in d3d9, it will crash.

parent e65195f8
......@@ -91,10 +91,6 @@ static void test_get_set_vertex_shader(IDirect3DDevice9 *device_ptr)
int shader_refcount = 0;
int i = 0;
hret = IDirect3DDevice9_CreateVertexShader(device_ptr, NULL, &shader_ptr);
ok(hret == D3DERR_INVALIDCALL, "CreateVertexShader returned %#x, expected D3DERR_INVALIDCALL (%#x).\n",
hret, D3DERR_INVALIDCALL);
hret = IDirect3DDevice9_CreateVertexShader(device_ptr, simple_vs, &shader_ptr);
ok(hret == D3D_OK && shader_ptr != NULL, "CreateVertexShader returned: hret 0x%x, shader_ptr %p. "
"Expected hret 0x%x, shader_ptr != %p. Aborting.\n", hret, shader_ptr, D3D_OK, NULL);
......@@ -159,10 +155,6 @@ static void test_get_set_pixel_shader(IDirect3DDevice9 *device_ptr)
int shader_refcount = 0;
int i = 0;
hret = IDirect3DDevice9_CreatePixelShader(device_ptr, NULL, &shader_ptr);
ok(hret == D3DERR_INVALIDCALL, "CreatePixelShader returned %#x, expected D3DERR_INVALIDCALL (%#x).\n",
hret, D3DERR_INVALIDCALL);
hret = IDirect3DDevice9_CreatePixelShader(device_ptr, simple_ps, &shader_ptr);
ok(hret == D3D_OK && shader_ptr != NULL, "CreatePixelShader returned: hret 0x%x, shader_ptr %p. "
"Expected hret 0x%x, shader_ptr != %p. Aborting.\n", hret, shader_ptr, D3D_OK, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment