Module: wine Branch: master Commit: 35634c42a99753fef33feb027954c2c0d3169f1c URL: https://gitlab.winehq.org/wine/wine/-/commit/35634c42a99753fef33feb027954c2c...
Author: Matteo Bruni mbruni@codeweavers.com Date: Wed Jul 12 22:18:48 2023 +0200
wined3d: Prepare/load the destination resource location in ffp_blitter_blit().
Port of c0ab55700f681ace7ac13f9fdaa6075185fef35c to the FFP blitter.
---
dlls/wined3d/texture.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index bc7b1b63b9a..51139251188 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -6281,6 +6281,11 @@ static DWORD ffp_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_blit 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)