wined3d: Use draw_binding in surface_unload().

This commit is contained in:
Henri Verbeet 2011-08-24 22:08:44 +02:00 committed by Alexandre Julliard
parent 1d43f07239
commit 6cdfb95c8e
1 changed files with 1 additions and 1 deletions

View File

@ -1866,7 +1866,7 @@ static void surface_unload(struct wined3d_resource *resource)
{
/* Load the surface into system memory */
surface_load_location(surface, SFLAG_INSYSMEM, NULL);
surface_modify_location(surface, SFLAG_INDRAWABLE, FALSE);
surface_modify_location(surface, surface->draw_binding, FALSE);
}
surface_modify_location(surface, SFLAG_INTEXTURE, FALSE);
surface_modify_location(surface, SFLAG_INSRGBTEX, FALSE);