forked from Mirrors/wine-wine
wined3d: Also update the "src_texture_gl" pointer when using a staging texture in the blitter.
Astutely spotted by Józef Kucia. This fixes a regression introduced by commitoldstable961a94ac04
. Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> (cherry picked from commita5279a5fba
) Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
parent
9e5541cbfb
commit
4a6314363e
|
@ -7839,6 +7839,7 @@ static DWORD arbfp_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_bl
|
|||
src_texture, src_sub_resource_idx, &upload_box);
|
||||
|
||||
src_texture = staging_texture;
|
||||
src_texture_gl = wined3d_texture_gl(src_texture);
|
||||
src_sub_resource_idx = 0;
|
||||
}
|
||||
else if (wined3d_settings.offscreen_rendering_mode != ORM_FBO
|
||||
|
|
|
@ -13228,6 +13228,7 @@ static DWORD glsl_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_bli
|
|||
src_texture, src_sub_resource_idx, &upload_box);
|
||||
|
||||
src_texture = staging_texture;
|
||||
src_texture_gl = wined3d_texture_gl(src_texture);
|
||||
src_sub_resource_idx = 0;
|
||||
}
|
||||
else if (wined3d_settings.offscreen_rendering_mode != ORM_FBO
|
||||
|
|
|
@ -2220,6 +2220,7 @@ static DWORD ffp_blitter_blit(struct wined3d_blitter *blitter, enum wined3d_blit
|
|||
src_texture, src_sub_resource_idx, &upload_box);
|
||||
|
||||
src_texture = staging_texture;
|
||||
src_texture_gl = wined3d_texture_gl(src_texture);
|
||||
src_sub_resource_idx = 0;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue