Henri Verbeet : d3d10core: Implement ID3D10Buffer::Map().
Alexandre Julliard
julliard at winehq.org
Fri Oct 15 10:40:29 CDT 2010
Module: wine
Branch: master
Commit: 8ebc1800557e2316a24c6e4c75b8e6373a203479
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8ebc1800557e2316a24c6e4c75b8e6373a203479
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Oct 15 14:35:14 2010 +0200
d3d10core: Implement ID3D10Buffer::Map().
---
dlls/d3d10core/buffer.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d10core/buffer.c b/dlls/d3d10core/buffer.c
index 9230e9d..8d8e0e0 100644
--- a/dlls/d3d10core/buffer.c
+++ b/dlls/d3d10core/buffer.c
@@ -131,9 +131,16 @@ static UINT STDMETHODCALLTYPE d3d10_buffer_GetEvictionPriority(ID3D10Buffer *ifa
static HRESULT STDMETHODCALLTYPE d3d10_buffer_Map(ID3D10Buffer *iface, D3D10_MAP map_type, UINT map_flags, void **data)
{
- FIXME("iface %p, map_type %u, map_flags %#x, data %p stub!\n", iface, map_type, map_flags, data);
+ struct d3d10_buffer *buffer = (struct d3d10_buffer *)iface;
- return E_NOTIMPL;
+ TRACE("iface %p, map_type %u, map_flags %#x, data %p.\n", iface, map_type, map_flags, data);
+
+ if (map_type != D3D10_MAP_READ_WRITE)
+ FIXME("Ignoring map_type %#x.\n", map_type);
+ if (map_flags)
+ FIXME("Ignoring map_flags %#x.\n", map_flags);
+
+ return IWineD3DBuffer_Map(buffer->wined3d_buffer, 0, 0, (BYTE **)data, 0);
}
static void STDMETHODCALLTYPE d3d10_buffer_Unmap(ID3D10Buffer *iface)
More information about the wine-cvs
mailing list