diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 7eb4ee3899..ead965b371 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -885,9 +885,9 @@ static bool d3d_init_chain(d3d_video_t *d3d, const video_info_t *video_info) } #ifdef _XBOX - if (!d3d->renderchain_driver->init(d3d, video_info, + if (!d3d->renderchain_driver->init(d3d, &d3d->video_info, d3dr, &d3d->final_viewport, &link_info, - video_info->rgb32 ? + d3d->video_info.rgb32 ? RETRO_PIXEL_FORMAT_XRGB8888 : RETRO_PIXEL_FORMAT_RGB565)) #else if (!d3d->renderchain_driver->init(d3d->renderchain_data, &d3d->video_info, diff --git a/gfx/d3d/render_chain_xdk.cpp b/gfx/d3d/render_chain_xdk.cpp index 3baf1a2c05..b84a1d43bc 100644 --- a/gfx/d3d/render_chain_xdk.cpp +++ b/gfx/d3d/render_chain_xdk.cpp @@ -310,7 +310,7 @@ static bool xdk_renderchain_init_shader(void *data) } static bool xdk_renderchain_init(void *data, - const void *_info, + const void *_video_info, void *dev_data, const void *final_viewport_data, const void *info_data, @@ -320,18 +320,19 @@ static bool xdk_renderchain_init(void *data, d3d_video_t *chain = (d3d_video_t*)data; LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)chain->dev; global_t *global = global_get_ptr(); - const video_info_t *info = (const video_info_t*)_info; + const video_info_t *video_info = (const video_info_t*)_video_info; const LinkInfo *link_info = (const LinkInfo*)info_data; (void)final_viewport_data; (void)fmt; chain->dev = (LPDIRECT3DDEVICE)dev_data; + //chain->video_info = video_info; chain->pixel_size = (fmt == RETRO_PIXEL_FORMAT_RGB565) ? 2 : 4; chain->tex_w = link_info->tex_w; chain->tex_h = link_info->tex_h; - if (!renderchain_create_first_pass(chain, info)) + if (!renderchain_create_first_pass(chain, video_info)) return false; if (global->console.screen.viewports.custom_vp.width == 0)