From e7066a90e186525adaaa3f3b77df71c826a91a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Fri, 30 Apr 2010 16:39:02 +0200 Subject: [PATCH] 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 file changed, 10 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 1d366a773be..4db678d1018 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)) {