Rob Shearman : d3d9: Fix copy and paste error in reset_enum_callback.

Alexandre Julliard julliard at winehq.org
Tue Feb 19 08:05:21 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Feb 19 11:37:09 2008 +0000

d3d9: Fix copy and paste error in reset_enum_callback.

vertex_desc.Pool should obviously be used in the 
WINED3DRTYPE_VERTEXBUFFER case instead of index_desc.Pool.

---

 dlls/d3d9/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 27940b4..7d63a10 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -283,7 +283,7 @@ static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data
 
         case WINED3DRTYPE_VERTEXBUFFER:
             IWineD3DVertexBuffer_GetDesc((IWineD3DVertexBuffer *) resource, &vertex_desc);
-            pool = index_desc.Pool;
+            pool = vertex_desc.Pool;
             break;
 
         /* No need to check for textures. If there is a D3DPOOL_DEFAULT texture, there




More information about the wine-cvs mailing list