Commit 99a3bc3c authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Fix the sub-resource index validation in wined3d_texture_update_overlay().

This condition accidentally got inverted when wined3d_texture_validate_sub_resource_idx() was introduced in commit 44d6f2ad.
parent 064edf1d
......@@ -4242,7 +4242,7 @@ HRESULT CDECL wined3d_texture_update_overlay(struct wined3d_texture *texture, un
return WINEDDERR_NOTAOVERLAYSURFACE;
if (!dst_texture || dst_texture->resource.type != WINED3D_RTYPE_TEXTURE_2D
|| wined3d_texture_validate_sub_resource_idx(dst_texture, dst_sub_resource_idx))
|| !wined3d_texture_validate_sub_resource_idx(dst_texture, dst_sub_resource_idx))
return WINED3DERR_INVALIDCALL;
overlay = &texture->overlay_info[sub_resource_idx];
......
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