/* Helpers for surface creation */
IDirectDrawSurfaceImpl *tex_root;
- BOOL depthstencil;
/* For the dll unload cleanup code */
struct list ddraw_list_entry;
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)
{