d3d9/tests: Don't create a Null-shader in d3d9, it will crash.
This commit is contained in:
parent
e65195f874
commit
bf5912208f
|
@ -91,10 +91,6 @@ static void test_get_set_vertex_shader(IDirect3DDevice9 *device_ptr)
|
||||||
int shader_refcount = 0;
|
int shader_refcount = 0;
|
||||||
int i = 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);
|
hret = IDirect3DDevice9_CreateVertexShader(device_ptr, simple_vs, &shader_ptr);
|
||||||
ok(hret == D3D_OK && shader_ptr != NULL, "CreateVertexShader returned: hret 0x%x, shader_ptr %p. "
|
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);
|
"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 shader_refcount = 0;
|
||||||
int i = 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);
|
hret = IDirect3DDevice9_CreatePixelShader(device_ptr, simple_ps, &shader_ptr);
|
||||||
ok(hret == D3D_OK && shader_ptr != NULL, "CreatePixelShader returned: hret 0x%x, shader_ptr %p. "
|
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);
|
"Expected hret 0x%x, shader_ptr != %p. Aborting.\n", hret, shader_ptr, D3D_OK, NULL);
|
||||||
|
|
Loading…
Reference in New Issue