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

wined3d: Prepare/load the destination resource location in arbfp_blitter_blit().

Port of c0ab5570 to the ARB FP blitter.
parent 35634c42
......@@ -7907,6 +7907,11 @@ static DWORD arbfp_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_bl
wined3d_texture_load(src_texture, context, FALSE);
}
if (wined3d_texture_is_full_rect(dst_texture, dst_sub_resource_idx % dst_texture->level_count, dst_rect))
wined3d_texture_prepare_location(dst_texture, dst_sub_resource_idx, context, dst_location);
else
wined3d_texture_load_location(dst_texture, dst_sub_resource_idx, context, dst_location);
wined3d_context_gl_apply_ffp_blit_state(context_gl, device);
if (dst_location == WINED3D_LOCATION_DRAWABLE)
......
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