d3d10core: Implement d3d10_texture2d_Unmap().

This commit is contained in:
Henri Verbeet 2012-07-12 13:44:22 +02:00 committed by Alexandre Julliard
parent 2b4c72b13b
commit 21a7b18311
1 changed files with 10 additions and 2 deletions

View File

@ -159,9 +159,17 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture2d_Map(ID3D10Texture2D *iface, UIN
return E_NOTIMPL;
}
static void STDMETHODCALLTYPE d3d10_texture2d_Unmap(ID3D10Texture2D *iface, UINT sub_resource)
static void STDMETHODCALLTYPE d3d10_texture2d_Unmap(ID3D10Texture2D *iface, UINT sub_resource_idx)
{
FIXME("iface %p, sub_resource %u stub!\n", iface, sub_resource);
struct d3d10_texture2d *texture = impl_from_ID3D10Texture2D(iface);
struct wined3d_resource *sub_resource;
TRACE("iface %p, sub_resource_idx %u.\n", iface, sub_resource_idx);
if (!(sub_resource = wined3d_texture_get_sub_resource(texture->wined3d_texture, sub_resource_idx)))
return;
wined3d_surface_unmap(wined3d_surface_from_resource(sub_resource));
}
static void STDMETHODCALLTYPE d3d10_texture2d_GetDesc(ID3D10Texture2D *iface, D3D10_TEXTURE2D_DESC *desc)