Henri Verbeet : wined3d: Get rid of the wantsDepthStencilBuffer in IWineD3DSwapChainImpl.

Alexandre Julliard julliard at winehq.org
Tue Sep 23 09:28:29 CDT 2008


Module: wine
Branch: master
Commit: d95ae08ad47e4f3dd27cc6ae5fb6666eb7c0ad60
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d95ae08ad47e4f3dd27cc6ae5fb6666eb7c0ad60

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Sep 22 14:52:36 2008 +0200

wined3d: Get rid of the wantsDepthStencilBuffer in IWineD3DSwapChainImpl.

---

 dlls/wined3d/device.c          |    9 +--------
 dlls/wined3d/wined3d_private.h |    1 -
 2 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 4887b9b..d83fdcc 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1618,19 +1618,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
             if (This->auto_depth_stencil_buffer != NULL)
                 IWineD3DSurface_SetContainer(This->auto_depth_stencil_buffer, 0);
         }
-
-        /** TODO: A check on width, height and multisample types
-        *(since the zbuffer must be at least as large as the render target and have the same multisample parameters)
-         ****************************/
-        object->wantsDepthStencilBuffer = TRUE;
-    } else {
-        object->wantsDepthStencilBuffer = FALSE;
     }
 
     IWineD3DSwapChain_GetGammaRamp((IWineD3DSwapChain *) object, &object->orig_gamma);
 
     TRACE("Created swapchain %p\n", object);
-    TRACE("FrontBuf @ %p, BackBuf @ %p, DepthStencil %d\n",object->frontBuffer, object->backBuffer ? object->backBuffer[0] : NULL, object->wantsDepthStencilBuffer);
+    TRACE("FrontBuf @ %p, BackBuf @ %p, DepthStencil %d\n",object->frontBuffer, object->backBuffer ? object->backBuffer[0] : NULL, pPresentationParameters->EnableAutoDepthStencil);
     return WINED3D_OK;
 
 error:
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 0354ead..967cec6 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1746,7 +1746,6 @@ typedef struct IWineD3DSwapChainImpl
     /* IWineD3DSwapChain fields */
     IWineD3DSurface         **backBuffer;
     IWineD3DSurface          *frontBuffer;
-    BOOL                      wantsDepthStencilBuffer;
     WINED3DPRESENT_PARAMETERS presentParms;
     DWORD                     orig_width, orig_height;
     WINED3DFORMAT             orig_fmt;




More information about the wine-cvs mailing list