wined3d: Use "depth_size" to check for a depth format in resolve_depth_buffer().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2020-06-04 15:32:00 +04:30 committed by Alexandre Julliard
parent 831701d3f4
commit 28145b97eb
1 changed files with 1 additions and 1 deletions

View File

@ -1695,7 +1695,7 @@ static void resolve_depth_buffer(struct wined3d_device *device)
if (!(dst_texture = state->textures[0]))
return;
dst_resource = &dst_texture->resource;
if (!(dst_resource->format_flags & WINED3DFMT_FLAG_DEPTH))
if (!dst_resource->format->depth_size)
return;
if (!(src_view = state->fb.depth_stencil))
return;