[PATCH 2/5] ddraw: Remove the unused "depthstencil" field from IDirectDrawImpl.
Henri Verbeet
hverbeet at codeweavers.com
Sun Sep 11 15:25:39 CDT 2011
---
dlls/ddraw/ddraw_private.h | 1 -
dlls/ddraw/surface.c | 6 +-----
2 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/ddraw/ddraw_private.h b/dlls/ddraw/ddraw_private.h
index 2c3ab8f..065ef8a 100644
--- a/dlls/ddraw/ddraw_private.h
+++ b/dlls/ddraw/ddraw_private.h
@@ -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;
diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index d70e355..10d9dc4 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -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)
{
--
1.7.3.4
More information about the wine-patches
mailing list