Commit 4229d865 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Only try to load surfaces from the drawable if the drawable is current…

wined3d: Only try to load surfaces from the drawable if the drawable is current in surface_load_sysmem().
parent aeca2f98
......@@ -5809,9 +5809,15 @@ static void surface_load_sysmem(struct wined3d_surface *surface,
return;
}
/* Note: It might be faster to download into a texture first. */
read_from_framebuffer(surface, rect, surface->resource.allocatedMemory,
wined3d_surface_get_pitch(surface));
if (surface->flags & SFLAG_INDRAWABLE)
{
read_from_framebuffer(surface, rect, surface->resource.allocatedMemory,
wined3d_surface_get_pitch(surface));
return;
}
FIXME("Can't load surface %p with location flags %#x into sysmem.\n",
surface, surface->flags & SFLAG_LOCATIONS);
}
static HRESULT surface_load_drawable(struct wined3d_surface *surface,
......
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