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@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Henri Verbeet 2019-07-03 16:19:07 +04:30 committed by Alexandre Julliard
parent 3d8c15dc85
commit 4ed190e8ac
1 changed files with 1 additions and 1 deletions

View File

@ -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)