Commit 87435db8 authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard

d3d11: Implement d3d11_immediate_context_GetContextFlags().

parent 5c446e92
......@@ -2408,7 +2408,7 @@ static D3D11_DEVICE_CONTEXT_TYPE STDMETHODCALLTYPE d3d11_immediate_context_GetTy
static UINT STDMETHODCALLTYPE d3d11_immediate_context_GetContextFlags(ID3D11DeviceContext1 *iface)
{
FIXME("iface %p stub!\n", iface);
TRACE("iface %p.\n", iface);
return 0;
}
......
......@@ -2155,6 +2155,7 @@ static void test_immediate_context(void)
ID3D11Multithread *multithread;
ID3D11Buffer *buffer[2];
ID3D11Device *device;
unsigned int flags;
BOOL enabled;
HRESULT hr;
......@@ -2215,6 +2216,9 @@ static void test_immediate_context(void)
ID3D11Device_GetImmediateContext(device, &immediate_context);
flags = ID3D11DeviceContext_GetContextFlags(immediate_context);
ok(!flags, "Got unexpected flags %#x.\n", flags);
hr = ID3D11DeviceContext_FinishCommandList(immediate_context, FALSE, &command_list);
ok(hr == DXGI_ERROR_INVALID_CALL, "Got unexpected hr %#x.\n", hr);
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