Henri Verbeet : wined3d: Also try to create a depth/ stencil buffer for WINED3D_NO3D devices in swapchain_init().

Alexandre Julliard julliard at winehq.org
Wed Jul 3 17:11:53 CDT 2019

Module: wine
Branch: master
Commit: 4ed190e8ac50de60bfcd0c54462b690bf83c44b8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4ed190e8ac50de60bfcd0c54462b690bf83c44b8

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Jul  3 16:37:07 2019 +0430

wined3d: Also try to create a depth/stencil buffer for WINED3D_NO3D devices in swapchain_init().

If requested. It will fail as it should, but the client library should never
request it. I.e., the additional check is redundant.

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>


 dlls/wined3d/swapchain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 9be6658..69580ad 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -938,7 +938,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, struct wined3
     /* Swapchains share the depth/stencil buffer, so only create a single depthstencil surface. */
-    if (desc->enable_auto_depth_stencil && !(device->wined3d->flags & WINED3D_NO3D))
+    if (desc->enable_auto_depth_stencil)
         TRACE("Creating depth/stencil buffer.\n");
         if (!device->auto_depth_stencil_view)

More information about the wine-cvs mailing list