Commit 364e11b0 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1: Simplify the WIC render target implementation.

parent a7d84716
......@@ -162,7 +162,7 @@ HRESULT d2d_d3d_render_target_create_rtv(ID2D1RenderTarget *render_target, IDXGI
struct d2d_wic_render_target
{
ID2D1RenderTarget ID2D1RenderTarget_iface;
IUnknown IUnknown_iface;
LONG refcount;
IDXGISurface *dxgi_surface;
......
......@@ -300,7 +300,7 @@ static HRESULT STDMETHODCALLTYPE d2d_factory_CreateWicBitmapRenderTarget(ID2D1Fa
}
TRACE("Created render target %p.\n", object);
*render_target = &object->ID2D1RenderTarget_iface;
*render_target = object->dxgi_target;
return S_OK;
}
......
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