Commit 89eaa4aa authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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

It's validated in wined3d_texture_blt(). Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f2e614b1
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment