=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Do not validate texture type in resolve_depth_buffer().

Alexandre Julliard julliard at winehq.org
Mon Feb 5 16:48:26 CST 2018


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Mon Feb  5 13:13:40 2018 +0100

wined3d: Do not validate texture type in resolve_depth_buffer().

It's validated in wined3d_texture_blt().

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/device.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 0c415d1..2d1603f 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1931,8 +1931,7 @@ static void resolve_depth_buffer(struct wined3d_state *state)
     struct wined3d_rendertarget_view *src_view;
     RECT src_rect, dst_rect;
 
-    if (!dst_texture || dst_texture->resource.type != WINED3D_RTYPE_TEXTURE_2D
-            || !(dst_texture->resource.format_flags & WINED3DFMT_FLAG_DEPTH))
+    if (!dst_texture || !(dst_texture->resource.format_flags & WINED3DFMT_FLAG_DEPTH))
         return;
 
     if (!(src_view = state->fb->depth_stencil))




More information about the wine-cvs mailing list