wined3d: Do not explicitly check 3D depth/stencil capabilities in wined3d_check_device_format().
This reapplies the change from67d0038e49
that was reverted in06b1932218
, causing a regression. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53785
This commit is contained in:
parent
af215210f0
commit
8e7c99f7ab
1 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue