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>
This commit is contained in:
parent
3d8c15dc85
commit
4ed190e8ac
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue