Module: wine Branch: master Commit: 1a55000df1796b75ad95d50c1ae55862d523dba4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a55000df1796b75ad95d50c1a...
Author: Stefan Dösinger stefan@codeweavers.com Date: Mon Nov 25 23:41:10 2013 +0100
wined3d: Discard non-sysmem locations in unload.
---
dlls/wined3d/surface.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 3bf4926..5256eb8 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1344,11 +1344,9 @@ static void surface_unload(struct wined3d_resource *resource) } else { - /* Load the surface into system memory */ surface_load_location(surface, SFLAG_INSYSMEM); - surface_invalidate_location(surface, surface->draw_binding); } - surface_invalidate_location(surface, SFLAG_INTEXTURE | SFLAG_INSRGBTEX); + surface_invalidate_location(surface, ~SFLAG_INSYSMEM); surface->flags &= ~(SFLAG_ALLOCATED | SFLAG_SRGBALLOCATED);
context = context_acquire(device, NULL);