ddraw: Remove the unused "depthstencil" field from IDirectDrawImpl.
This commit is contained in:
parent
f3e1a9fa16
commit
aa5590b061
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue