(D3D) Buildfix

This commit is contained in:
twinaphex 2015-04-05 18:33:42 +02:00
parent afe35e774a
commit daf3f3bb08
4 changed files with 15 additions and 8 deletions

View File

@ -1571,9 +1571,8 @@ static bool d3d_frame(void *data, const void *frame,
d3d->screen_height, d3d->video_info.force_aspect,
global->system.aspect_ratio);
#ifndef _XBOX
renderchain_set_final_viewport(d3d->chain, &d3d->final_viewport);
#endif
renderchain_set_final_viewport(d3d,
d3d->chain, &d3d->final_viewport);
d3d->should_resize = false;
}

View File

@ -865,9 +865,11 @@ static void d3d_recompute_pass_sizes(d3d_video_t *d3d)
}
}
void renderchain_set_final_viewport(void *data, const void *viewport_data)
void renderchain_set_final_viewport(void *data,
void *renderchain_data, const void *viewport_data)
{
renderchain_t *chain = (renderchain_t*)data;
d3d_video_t *d3d = (d3d_video_t*)data;
renderchain_t *chain = (renderchain_t*)renderchain_data;
const D3DVIEWPORT *final_viewport = (const D3DVIEWPORT*)viewport_data;
if (chain)

View File

@ -78,7 +78,8 @@ bool renderchain_init(void *data, const video_info_t *video_info,
void renderchain_clear(void *data);
void renderchain_set_final_viewport(void *data, const void *viewport_data);
void renderchain_set_final_viewport(void *data,
void *renderchain_data, const void *viewport_data);
bool renderchain_set_pass_size(void *data, unsigned pass_index,
unsigned width, unsigned height);

View File

@ -294,5 +294,10 @@ static void renderchain_render_pass(void *data, const void *frame,
renderchain_set_mvp(d3d, d3d->screen_width, d3d->screen_height, d3d->dev_rotation);
}
void renderchain_set_final_viewport(void *data,
void *renderchain_data, const void *viewport_data)
{
(void)data;
(void)renderchain_data;
(void)viewport_data;
}