Misha Koshelev : d3dx9_36: Implement ID3DXMesh_Lock/ UnlockVertexBuffer and ID3DXMesh_Lock/UnlockIndexBuffer.

Alexandre Julliard julliard at winehq.org
Fri Sep 24 11:43:45 CDT 2010


Module: wine
Branch: master
Commit: 99e2aedbf7937c23ceb36d3bb34814406f4e8270
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=99e2aedbf7937c23ceb36d3bb34814406f4e8270

Author: Misha Koshelev <misha680 at gmail.com>
Date:   Thu Sep 23 16:22:25 2010 -0500

d3dx9_36: Implement ID3DXMesh_Lock/UnlockVertexBuffer and ID3DXMesh_Lock/UnlockIndexBuffer.

---

 dlls/d3dx9_36/mesh.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index 21ca2dc..a7ea30a 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)




More information about the wine-cvs mailing list