d3d11: Implement d3d11_immediate_context_GetContextFlags().
Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5c446e92d7
commit
87435db8a1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue