(D3D) Simplify d3d_texture_blit

This commit is contained in:
twinaphex 2015-04-07 00:46:46 +02:00
parent 50348efc6a
commit 78150259dc
4 changed files with 4 additions and 4 deletions

View File

@ -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)
{

View File

@ -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);

View File

@ -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);
}

View File

@ -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);
}