Michael Mc Donnell : d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateTextW.

Alexandre Julliard julliard at winehq.org
Wed Aug 31 13:19:22 CDT 2011


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

Author: Michael Mc Donnell <michael at mcdonnell.dk>
Date:   Fri Aug 19 19:05:52 2011 +0200

d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateTextW.

---

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

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index d07d4bd..04ee7d0 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -5344,11 +5344,11 @@ HRESULT WINAPI D3DXCreateTextW(LPDIRECT3DDEVICE9 device,
     if (FAILED(hr))
         goto error;
 
-    hr = mesh->lpVtbl->LockVertexBuffer(mesh, D3DLOCK_DISCARD, (LPVOID *)&vertices);
+    hr = mesh->lpVtbl->LockVertexBuffer(mesh, 0, (LPVOID *)&vertices);
     if (FAILED(hr))
         goto error;
 
-    hr = mesh->lpVtbl->LockIndexBuffer(mesh, D3DLOCK_DISCARD, (LPVOID *)&faces);
+    hr = mesh->lpVtbl->LockIndexBuffer(mesh, 0, (LPVOID *)&faces);
     if (FAILED(hr))
         goto error;
 




More information about the wine-cvs mailing list