mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
(D3D) Simplify d3d_texture_blit
This commit is contained in:
parent
50348efc6a
commit
78150259dc
@ -322,7 +322,7 @@ HRESULT d3d_set_vertex_shader(LPDIRECT3DDEVICE dev, unsigned index,
|
||||
}
|
||||
|
||||
|
||||
void d3d_texture_blit(void *data, unsigned pixel_size,
|
||||
void d3d_texture_blit(unsigned pixel_size,
|
||||
LPDIRECT3DTEXTURE tex, D3DLOCKED_RECT *lr, const void *frame,
|
||||
unsigned width, unsigned height, unsigned pitch)
|
||||
{
|
||||
|
@ -76,7 +76,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, unsigned pixel_size,
|
||||
void d3d_texture_blit(unsigned pixel_size,
|
||||
LPDIRECT3DTEXTURE tex,
|
||||
D3DLOCKED_RECT *lr, const void *frame,
|
||||
unsigned width, unsigned height, unsigned pitch);
|
||||
|
@ -1330,7 +1330,7 @@ static void renderchain_blit_to_texture(void *data,
|
||||
NULL, first->info.tex_h, D3DLOCK_NOSYSLOCK);
|
||||
}
|
||||
|
||||
d3d_texture_blit(driver->video_data, chain->pixel_size, first->tex,
|
||||
d3d_texture_blit(chain->pixel_size, first->tex,
|
||||
&d3dlr, frame, width, height, pitch);
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ static void renderchain_blit_to_texture(void *data, const void *frame,
|
||||
|
||||
/* Set the texture to NULL so D3D doesn't complain about it being in use... */
|
||||
d3d_set_texture(d3dr, 0, NULL);
|
||||
d3d_texture_blit(driver->video_data, d3d->pixel_size, d3d->tex,
|
||||
d3d_texture_blit(d3d->pixel_size, d3d->tex,
|
||||
&d3dlr, frame, width, height, pitch);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user