Commit 1fa7fea8 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d10core: Implement ID3D10Texture2D::GetDesc().

parent e5abaf9f
......@@ -60,6 +60,7 @@ struct d3d10_texture2d
IUnknown *dxgi_surface;
IWineD3DSurface *wined3d_surface;
D3D10_TEXTURE2D_DESC desc;
};
/* ID3D10Buffer */
......
......@@ -604,6 +604,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture2D(ID3D10Device *ifac
object->vtbl = &d3d10_texture2d_vtbl;
object->refcount = 1;
object->desc = *desc;
if (desc->MipLevels == 1 && desc->ArraySize == 1)
{
......
......@@ -152,7 +152,11 @@ static void STDMETHODCALLTYPE d3d10_texture2d_Unmap(ID3D10Texture2D *iface, UINT
static void STDMETHODCALLTYPE d3d10_texture2d_GetDesc(ID3D10Texture2D *iface, D3D10_TEXTURE2D_DESC *desc)
{
FIXME("iface %p, desc %p stub!\n", iface, desc);
struct d3d10_texture2d *This = (struct d3d10_texture2d *)iface;
TRACE("iface %p, desc %p\n", iface, desc);
*desc = This->desc;
}
const struct ID3D10Texture2DVtbl d3d10_texture2d_vtbl =
......
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