Commit 4ed190e8 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 3d8c15dc
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment