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 */
|
/* Helpers for surface creation */
|
||||||
IDirectDrawSurfaceImpl *tex_root;
|
IDirectDrawSurfaceImpl *tex_root;
|
||||||
BOOL depthstencil;
|
|
||||||
|
|
||||||
/* For the dll unload cleanup code */
|
/* For the dll unload cleanup code */
|
||||||
struct list ddraw_list_entry;
|
struct list ddraw_list_entry;
|
||||||
|
@ -5184,12 +5184,8 @@ HRESULT ddraw_surface_init(IDirectDrawSurfaceImpl *surface, IDirectDrawImpl *ddr
|
|||||||
usage |= WINED3DUSAGE_OVERLAY;
|
usage |= WINED3DUSAGE_OVERLAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ddraw->depthstencil || (desc->ddsCaps.dwCaps & DDSCAPS_ZBUFFER))
|
if (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. */
|
|
||||||
usage |= WINED3DUSAGE_DEPTHSTENCIL;
|
usage |= WINED3DUSAGE_DEPTHSTENCIL;
|
||||||
}
|
|
||||||
|
|
||||||
if (desc->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY)
|
if (desc->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user