Commit 28145b97 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 831701d3
......@@ -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;
......
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