Stefan Dösinger : wined3d: Don' t grab the implicit depth stencil format in the wrong place.

Alexandre Julliard julliard at winehq.org
Tue May 4 13:06:36 CDT 2010


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Apr 30 16:39:02 2010 +0200

wined3d: Don't grab the implicit depth stencil format in the wrong place.

This format is now explicitly passed to create_context.

---

 dlls/wined3d/context.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 1d366a7..4db678d 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1261,16 +1261,6 @@ struct wined3d_context *context_create(IWineD3DSwapChainImpl *swapchain, IWineD3
     if (color_format_desc->format == WINED3DFMT_P8_UINT)
         color_format_desc = getFormatDescEntry(WINED3DFMT_B8G8R8A8_UNORM, gl_info);
 
-    /* Retrieve the depth stencil format from the present parameters.
-     * The choice of the proper format can give a nice performance boost
-     * in case of GPU limited programs. */
-    if (swapchain->presentParms.EnableAutoDepthStencil)
-    {
-        TRACE("Auto depth stencil enabled, using format %s.\n",
-                debug_d3dformat(swapchain->presentParms.AutoDepthStencilFormat));
-        ds_format_desc = getFormatDescEntry(swapchain->presentParms.AutoDepthStencilFormat, gl_info);
-    }
-
     /* D3D only allows multisampling when SwapEffect is set to WINED3DSWAPEFFECT_DISCARD. */
     if (swapchain->presentParms.MultiSampleType && (swapchain->presentParms.SwapEffect == WINED3DSWAPEFFECT_DISCARD))
     {




More information about the wine-cvs mailing list