mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +00:00
(D3D) Buildfixes
This commit is contained in:
parent
bc311f3962
commit
3fb78a4ed4
@ -1126,10 +1126,11 @@ static bool cg_d3d9_renderchain_add_pass(void *data, const void *info_data)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool cg_d3d9_renderchain_add_lut(cg_renderchain_t *chain,
|
static bool cg_d3d9_renderchain_add_lut(void *data,
|
||||||
const char *id, const char *path, bool smooth)
|
const char *id, const char *path, bool smooth)
|
||||||
{
|
{
|
||||||
lut_info info;
|
lut_info info;
|
||||||
|
cg_renderchain_t *chain = (cg_renderchain_t*)data;
|
||||||
LPDIRECT3DDEVICE d3dr = chain->dev;
|
LPDIRECT3DDEVICE d3dr = chain->dev;
|
||||||
LPDIRECT3DTEXTURE lut = (LPDIRECT3DTEXTURE)
|
LPDIRECT3DTEXTURE lut = (LPDIRECT3DTEXTURE)
|
||||||
d3d_texture_new(d3dr,
|
d3d_texture_new(d3dr,
|
||||||
@ -1391,14 +1392,15 @@ static void renderchain_render_pass(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool cg_d3d9_renderchain_render(
|
static bool cg_d3d9_renderchain_render(
|
||||||
cg_renderchain_t *chain,
|
void *data
|
||||||
const void *data,
|
const void *frame_data,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
unsigned pitch, unsigned rotation)
|
unsigned pitch, unsigned rotation)
|
||||||
{
|
{
|
||||||
Pass *last_pass;
|
Pass *last_pass;
|
||||||
LPDIRECT3DSURFACE back_buffer, target;
|
LPDIRECT3DSURFACE back_buffer, target;
|
||||||
unsigned i, current_width, current_height, out_width = 0, out_height = 0;
|
unsigned i, current_width, current_height, out_width = 0, out_height = 0;
|
||||||
|
cg_renderchain_t *chain = (cg_renderchain_t*)data;
|
||||||
LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)chain->dev;
|
LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)chain->dev;
|
||||||
|
|
||||||
renderchain_start_render(chain);
|
renderchain_start_render(chain);
|
||||||
@ -1409,7 +1411,7 @@ static bool cg_d3d9_renderchain_render(
|
|||||||
&out_width, &out_height,
|
&out_width, &out_height,
|
||||||
current_width, current_height, chain->final_viewport);
|
current_width, current_height, chain->final_viewport);
|
||||||
|
|
||||||
renderchain_blit_to_texture(chain, data, width, height, pitch);
|
renderchain_blit_to_texture(chain, frame_data, width, height, pitch);
|
||||||
|
|
||||||
/* Grab back buffer. */
|
/* Grab back buffer. */
|
||||||
d3dr->GetRenderTarget(0, &back_buffer);
|
d3dr->GetRenderTarget(0, &back_buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user