wined3d: Surfaces always have a container in surface_modify_ds_location().

This commit is contained in:
Henri Verbeet 2013-11-19 10:28:50 +01:00 committed by Alexandre Julliard
parent f020251d2b
commit 0fba32f139
1 changed files with 1 additions and 7 deletions

View File

@ -5028,13 +5028,7 @@ void surface_modify_ds_location(struct wined3d_surface *surface,
if (((surface->flags & SFLAG_INTEXTURE) && !(location & SFLAG_INTEXTURE))
|| (!(surface->flags & SFLAG_INTEXTURE) && (location & SFLAG_INTEXTURE)))
{
if (surface->container)
{
TRACE("Passing to container.\n");
wined3d_texture_set_dirty(surface->container);
}
}
wined3d_texture_set_dirty(surface->container);
surface->ds_current_size.cx = w;
surface->ds_current_size.cy = h;