Module: wine Branch: master Commit: f57158c2401400714a7ed7c44b4a908c39163540 URL: https://gitlab.winehq.org/wine/wine/-/commit/f57158c2401400714a7ed7c44b4a908...
Author: Matteo Bruni mbruni@codeweavers.com Date: Wed Jul 12 22:19:23 2023 +0200
wined3d: Prepare/load the destination resource location in arbfp_blitter_blit().
Port of c0ab55700f681ace7ac13f9fdaa6075185fef35c to the ARB FP blitter.
---
dlls/wined3d/arb_program_shader.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index ea15294262a..165d9fd5094 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -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)