Commit 58016408 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Don't claim SYSMEM location to be current if memory was evicted.

parent bb16263f
...@@ -3539,7 +3539,8 @@ static DWORD cpu_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_blit ...@@ -3539,7 +3539,8 @@ static DWORD cpu_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_blit
ERR("Failed to blit.\n"); ERR("Failed to blit.\n");
wined3d_texture_load_location(dst_texture, dst_sub_resource_idx, context, dst_location); wined3d_texture_load_location(dst_texture, dst_sub_resource_idx, context, dst_location);
return dst_texture->resource.map_binding | dst_location; return dst_location | (dst_texture->sub_resources[dst_sub_resource_idx].locations
& dst_texture->resource.map_binding);
} }
static const struct wined3d_blitter_ops cpu_blitter_ops = static const struct wined3d_blitter_ops cpu_blitter_ops =
......
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