ddraw: Remove the unused "depthstencil" field from IDirectDrawImpl.
authorHenri Verbeet <hverbeet@codeweavers.com>
Sun, 11 Sep 2011 20:25:39 +0000 (22:25 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 12 Sep 2011 08:08:43 +0000 (10:08 +0200)
dlls/ddraw/ddraw_private.h
dlls/ddraw/surface.c

index 2c3ab8fd00928dab201cba94e7218adfa6d8599d..065ef8aee0fb6d7f27213d902a9996f9fa1b85e2 100644 (file)
@@ -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;
index d70e355f74ca19c07c47cb282d0a2e26df641268..10d9dc469610f1bea52d255a32c2e61c6874eea9 100644 (file)
@@ -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)
     {