Commit 818051c5 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11: Implement d3d11_rendertarget_view_GetDesc().

parent 99bb367d
......@@ -179,13 +179,13 @@ struct d3d_rendertarget_view
struct wined3d_private_store private_store;
struct wined3d_rendertarget_view *wined3d_view;
D3D10_RENDER_TARGET_VIEW_DESC desc;
D3D11_RENDER_TARGET_VIEW_DESC desc;
ID3D11Resource *resource;
ID3D10Device1 *device;
};
HRESULT d3d_rendertarget_view_init(struct d3d_rendertarget_view *view, struct d3d_device *device,
ID3D11Resource *resource, const D3D10_RENDER_TARGET_VIEW_DESC *desc) DECLSPEC_HIDDEN;
ID3D11Resource *resource, const D3D11_RENDER_TARGET_VIEW_DESC *desc) DECLSPEC_HIDDEN;
struct d3d_rendertarget_view *unsafe_impl_from_ID3D10RenderTargetView(ID3D10RenderTargetView *iface) DECLSPEC_HIDDEN;
/* ID3D10ShaderResourceView */
......
......@@ -2138,7 +2138,8 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateRenderTargetView(ID3D10Devic
return E_FAIL;
}
if (FAILED(hr = d3d_rendertarget_view_init(object, device, d3d11_resource, desc)))
if (FAILED(hr = d3d_rendertarget_view_init(object, device, d3d11_resource,
(const D3D11_RENDER_TARGET_VIEW_DESC *)desc)))
{
WARN("Failed to initialize rendertarget view, hr %#x.\n", hr);
HeapFree(GetProcessHeap(), 0, object);
......
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