Commit 8e7c99f7 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

wined3d: Do not explicitly check 3D depth/stencil capabilities in wined3d_check_device_format().

This reapplies the change from 67d0038e that was reverted in 06b19322, causing a regression. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53785
parent af215210
......@@ -2109,13 +2109,6 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d,
if (gl_type == WINED3D_GL_RES_TYPE_TEX_2D && !(bind_flags & WINED3D_BIND_SHADER_RESOURCE))
caps |= format->caps[WINED3D_GL_RES_TYPE_RB];
if ((caps & format_caps) != format_caps)
{
TRACE("Requested format caps %#x, but format %s only has %#x.\n",
format_caps, debug_d3dformat(check_format_id), caps);
return WINED3DERR_NOTAVAILABLE;
}
if ((bind_flags & WINED3D_BIND_RENDER_TARGET)
&& !adapter->adapter_ops->adapter_check_format(adapter, adapter_format, format, NULL))
{
......@@ -2143,6 +2136,13 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d,
return WINED3DERR_NOTAVAILABLE;
}
if ((caps & format_caps) != format_caps)
{
TRACE("Requested format caps %#x, but format %s only has %#x.\n",
format_caps, debug_d3dformat(check_format_id), caps);
return WINED3DERR_NOTAVAILABLE;
}
if (!(caps & WINED3D_FORMAT_CAP_GEN_MIPMAP))
mipmap_gen_supported = FALSE;
}
......
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