wined3d: Avoid surface_from_resource() in wined3d_texture_update_desc().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-02 19:24:14 +01:00 committed by Alexandre Julliard
parent e3e5dcd2cd
commit aad8f74cc8
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ HRESULT CDECL wined3d_texture_update_desc(struct wined3d_texture *texture, UINT
return WINED3DERR_INVALIDCALL;
}
surface = surface_from_resource(texture->sub_resources[0].resource);
surface = texture->sub_resources[0].u.surface;
if (surface->resource.map_count || (surface->flags & SFLAG_DCINUSE))
{
WARN("Surface is mapped or the DC is in use.\n");