Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/d3d10core/tests/d3d10core.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/dlls/d3d10core/tests/d3d10core.c b/dlls/d3d10core/tests/d3d10core.c index f65bd34a79..cc6b39ccd1 100644 --- a/dlls/d3d10core/tests/d3d10core.c +++ b/dlls/d3d10core/tests/d3d10core.c @@ -3578,6 +3578,17 @@ static void test_create_shader_resource_view(void) ID3D10ShaderResourceView_Release(srview); ID3D10Buffer_Release(buffer);
+ /* Without D3D10_BIND_SHADER_RESOURCE. */ + buffer = create_buffer(device, 0, 1024, NULL); + + hr = ID3D10Device_CreateShaderResourceView(device, (ID3D10Resource *)buffer, &srv_desc, &srview); +todo_wine + ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr); + if (SUCCEEDED(hr)) + ID3D10ShaderResourceView_Release(srview); + + ID3D10Buffer_Release(buffer); + texture2d_desc.Width = 512; texture2d_desc.Height = 512; texture2d_desc.SampleDesc.Count = 1;