1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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

This reapplies the change from 67d0038e49
that was reverted in 06b1932218, causing
a regression.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53785
This commit is contained in:
Sven Baars 2022-12-16 11:19:13 +01:00 committed by Alexandre Julliard
parent af215210f0
commit 8e7c99f7ab

View file

@ -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;
}