ddraw: Remove the unused "depthstencil" field from IDirectDrawImpl.

This commit is contained in:
Henri Verbeet 2011-09-11 22:25:39 +02:00 committed by Alexandre Julliard
parent f3e1a9fa16
commit aa5590b061
2 changed files with 1 additions and 6 deletions

View File

@ -113,7 +113,6 @@ struct IDirectDrawImpl
/* Helpers for surface creation */
IDirectDrawSurfaceImpl *tex_root;
BOOL depthstencil;
/* For the dll unload cleanup code */
struct list ddraw_list_entry;

View File

@ -5184,12 +5184,8 @@ HRESULT ddraw_surface_init(IDirectDrawSurfaceImpl *surface, IDirectDrawImpl *ddr
usage |= WINED3DUSAGE_OVERLAY;
}
if (ddraw->depthstencil || (desc->ddsCaps.dwCaps & DDSCAPS_ZBUFFER))
{
/* The depth stencil creation callback sets this flag. Set the
* wined3d usage to let it know it's a depth/stencil surface. */
if (desc->ddsCaps.dwCaps & DDSCAPS_ZBUFFER)
usage |= WINED3DUSAGE_DEPTHSTENCIL;
}
if (desc->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY)
{