wined3d: Get rid of special case for shadow textures from wined3d_check_device_format().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2019-03-26 18:29:45 +01:00 committed by Alexandre Julliard
parent 35d6f4c7f0
commit 0500b3e38f
1 changed files with 0 additions and 7 deletions

View File

@ -1626,13 +1626,6 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
allowed_bind_flags &= ~WINED3D_BIND_DEPTH_STENCIL;
gl_type = gl_type_end = WINED3D_GL_RES_TYPE_TEX_CUBE;
}
else if ((bind_flags & WINED3D_BIND_DEPTH_STENCIL)
&& (format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_SHADOW)
&& !adapter->gl_info.supported[ARB_SHADOW])
{
TRACE("[FAILED] - No shadow sampler support.\n");
return WINED3DERR_NOTAVAILABLE;
}
break;
case WINED3D_RTYPE_TEXTURE_3D: