From 99e2aedbf7937c23ceb36d3bb34814406f4e8270 Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Thu, 23 Sep 2010 16:22:25 -0500 Subject: [PATCH] d3dx9_36: Implement ID3DXMesh_Lock/UnlockVertexBuffer and ID3DXMesh_Lock/UnlockIndexBuffer. --- dlls/d3dx9_36/mesh.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c index 21ca2dcb476..a7ea30acfcc 100644 --- a/dlls/d3dx9_36/mesh.c +++ b/dlls/d3dx9_36/mesh.c @@ -213,36 +213,36 @@ static HRESULT WINAPI ID3DXMeshImpl_LockVertexBuffer(ID3DXMesh *iface, DWORD fla { ID3DXMeshImpl *This = (ID3DXMeshImpl *)iface; - FIXME("(%p)->(%u,%p): stub\n", This, flags, data); + TRACE("(%p)->(%u,%p)\n", This, flags, data); - return E_NOTIMPL; + return IDirect3DVertexBuffer9_Lock(This->vertex_buffer, 0, 0, data, flags); } static HRESULT WINAPI ID3DXMeshImpl_UnlockVertexBuffer(ID3DXMesh *iface) { ID3DXMeshImpl *This = (ID3DXMeshImpl *)iface; - FIXME("(%p): stub\n", This); + TRACE("(%p)\n", This); - return E_NOTIMPL; + return IDirect3DVertexBuffer9_Unlock(This->vertex_buffer); } static HRESULT WINAPI ID3DXMeshImpl_LockIndexBuffer(ID3DXMesh *iface, DWORD flags, LPVOID *data) { ID3DXMeshImpl *This = (ID3DXMeshImpl *)iface; - FIXME("(%p)->(%u,%p): stub\n", This, flags, data); + TRACE("(%p)->(%u,%p)\n", This, flags, data); - return E_NOTIMPL; + return IDirect3DIndexBuffer9_Lock(This->index_buffer, 0, 0, data, flags); } static HRESULT WINAPI ID3DXMeshImpl_UnlockIndexBuffer(ID3DXMesh *iface) { ID3DXMeshImpl *This = (ID3DXMeshImpl *)iface; - FIXME("(%p): stub\n", This); + TRACE("(%p)\n", This); - return E_NOTIMPL; + return IDirect3DIndexBuffer9_Unlock(This->index_buffer); } static HRESULT WINAPI ID3DXMeshImpl_GetAttributeTable(ID3DXMesh *iface, D3DXATTRIBUTERANGE *attrib_table, DWORD *attrib_table_size)