diff --git a/gfx/d3d9/d3d_wrapper.h b/gfx/d3d9/d3d_wrapper.h index 11a019e0b1..e593534ac2 100644 --- a/gfx/d3d9/d3d_wrapper.h +++ b/gfx/d3d9/d3d_wrapper.h @@ -56,7 +56,7 @@ void d3d_set_texture(LPDIRECT3DDEVICE dev, unsigned sampler, HRESULT d3d_set_vertex_shader(LPDIRECT3DDEVICE dev, unsigned index, void *data); -void d3d_texture_blit(void *data, +void d3d_texture_blit(void *data, void *renderchain_data, LPDIRECT3DTEXTURE tex, D3DSURFACE_DESC desc, D3DLOCKED_RECT lr, const void *frame, unsigned width, unsigned height, unsigned pitch); diff --git a/gfx/d3d9/render_chain.cpp b/gfx/d3d9/render_chain.cpp index 6928671b6f..fb20be6e57 100644 --- a/gfx/d3d9/render_chain.cpp +++ b/gfx/d3d9/render_chain.cpp @@ -541,7 +541,8 @@ void renderchain_blit_to_texture(void *data, const void *frame, NULL, D3DLOCK_NOSYSLOCK); } - d3d_texture_blit(chain, desc, d3dlr, frame, width, height, pitch); + d3d_texture_blit(driver.video_data, chain, first.tex, + desc, d3dlr, frame, width, height, pitch); } void renderchain_render_pass(void *data, Pass &pass, unsigned pass_index) diff --git a/gfx/d3d9/render_chain_xdk.h b/gfx/d3d9/render_chain_xdk.h index 674c855762..a604a1ebf9 100644 --- a/gfx/d3d9/render_chain_xdk.h +++ b/gfx/d3d9/render_chain_xdk.h @@ -271,5 +271,5 @@ static void renderchain_blit_to_texture(void *data, const void *frame, } D3DTexture_LockRect(d3d->tex, 0, &d3dlr, NULL, D3DLOCK_NOSYSLOCK); - d3d_texture_blit(d3d, desc, d3dlr, frame, width, height, pitch); + d3d_texture_blit(d3d, NULL, d3d->tex, desc, d3dlr, frame, width, height, pitch); }