Commit abb620ed authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Sysmem can be freed when user memory is used.

parent 638c8e38
......@@ -614,8 +614,7 @@ void surface_prepare_map_memory(struct wined3d_surface *surface)
static void surface_evict_sysmem(struct wined3d_surface *surface)
{
if (surface->resource.map_count || (surface->flags & SFLAG_DONOTFREE)
|| surface->user_memory)
if (surface->resource.map_count || surface->flags & SFLAG_DONOTFREE)
return;
wined3d_resource_free_sysmem(&surface->resource);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment