mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-12 02:44:00 +00:00
(D3D) Build fix - make d3d_texture_blit wrapper function work
This commit is contained in:
parent
fa0261c1d6
commit
5c8cab7e4f
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user