Module: wine Branch: master Commit: aa5590b06128521f7580bc38347ac983e3253580 URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa5590b06128521f7580bc3834...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Sun Sep 11 22:25:39 2011 +0200
ddraw: Remove the unused "depthstencil" field from IDirectDrawImpl.
---
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) {