(D3D) Build fix - make d3d_texture_blit wrapper function work

This commit is contained in:
twinaphex 2014-09-12 20:21:56 +02:00
parent fa0261c1d6
commit 5c8cab7e4f
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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