mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 13:03:39 +00:00
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
44d6f2adbc
.
This commit is contained in:
parent
064edf1df4
commit
99a3bc3c2b
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue