=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Get rid of special case for shadow textures from wined3d_check_device_format ().

Alexandre Julliard julliard at winehq.org
Tue Mar 26 16:43:15 CDT 2019


Module: wine
Branch: master
Commit: 0500b3e38fbfde28cb35267e59775559e3b345df
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0500b3e38fbfde28cb35267e59775559e3b345df

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Mar 26 18:29:45 2019 +0100

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

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/directx.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 6fb26d2..45e2871 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -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:




More information about the wine-cvs mailing list