mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 23:43:37 +00:00
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 commit
961a94ac04
.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7551f01bd0
commit
a5279a5fba
|
@ -7841,6 +7841,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
|
||||
|
|
|
@ -13258,6 +13258,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
|
||||
|
|
|
@ -2213,6 +2213,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 a new issue