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.
This commit is contained in:
Rob Shearman 2008-02-19 11:37:09 +00:00 committed by Alexandre Julliard
parent c6c205a1d5
commit dfda3c4dc8
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data
case WINED3DRTYPE_VERTEXBUFFER: case WINED3DRTYPE_VERTEXBUFFER:
IWineD3DVertexBuffer_GetDesc((IWineD3DVertexBuffer *) resource, &vertex_desc); IWineD3DVertexBuffer_GetDesc((IWineD3DVertexBuffer *) resource, &vertex_desc);
pool = index_desc.Pool; pool = vertex_desc.Pool;
break; break;
/* No need to check for textures. If there is a D3DPOOL_DEFAULT texture, there /* No need to check for textures. If there is a D3DPOOL_DEFAULT texture, there