mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +00:00
(XDK) Updates
This commit is contained in:
parent
becf52bcf4
commit
9e6c2de94f
@ -885,9 +885,9 @@ static bool d3d_init_chain(d3d_video_t *d3d, const video_info_t *video_info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _XBOX
|
#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,
|
d3dr, &d3d->final_viewport, &link_info,
|
||||||
video_info->rgb32 ?
|
d3d->video_info.rgb32 ?
|
||||||
RETRO_PIXEL_FORMAT_XRGB8888 : RETRO_PIXEL_FORMAT_RGB565))
|
RETRO_PIXEL_FORMAT_XRGB8888 : RETRO_PIXEL_FORMAT_RGB565))
|
||||||
#else
|
#else
|
||||||
if (!d3d->renderchain_driver->init(d3d->renderchain_data, &d3d->video_info,
|
if (!d3d->renderchain_driver->init(d3d->renderchain_data, &d3d->video_info,
|
||||||
|
@ -310,7 +310,7 @@ static bool xdk_renderchain_init_shader(void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool xdk_renderchain_init(void *data,
|
static bool xdk_renderchain_init(void *data,
|
||||||
const void *_info,
|
const void *_video_info,
|
||||||
void *dev_data,
|
void *dev_data,
|
||||||
const void *final_viewport_data,
|
const void *final_viewport_data,
|
||||||
const void *info_data,
|
const void *info_data,
|
||||||
@ -320,18 +320,19 @@ static bool xdk_renderchain_init(void *data,
|
|||||||
d3d_video_t *chain = (d3d_video_t*)data;
|
d3d_video_t *chain = (d3d_video_t*)data;
|
||||||
LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)chain->dev;
|
LPDIRECT3DDEVICE d3dr = (LPDIRECT3DDEVICE)chain->dev;
|
||||||
global_t *global = global_get_ptr();
|
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;
|
const LinkInfo *link_info = (const LinkInfo*)info_data;
|
||||||
|
|
||||||
(void)final_viewport_data;
|
(void)final_viewport_data;
|
||||||
(void)fmt;
|
(void)fmt;
|
||||||
|
|
||||||
chain->dev = (LPDIRECT3DDEVICE)dev_data;
|
chain->dev = (LPDIRECT3DDEVICE)dev_data;
|
||||||
|
//chain->video_info = video_info;
|
||||||
chain->pixel_size = (fmt == RETRO_PIXEL_FORMAT_RGB565) ? 2 : 4;
|
chain->pixel_size = (fmt == RETRO_PIXEL_FORMAT_RGB565) ? 2 : 4;
|
||||||
chain->tex_w = link_info->tex_w;
|
chain->tex_w = link_info->tex_w;
|
||||||
chain->tex_h = link_info->tex_h;
|
chain->tex_h = link_info->tex_h;
|
||||||
|
|
||||||
if (!renderchain_create_first_pass(chain, info))
|
if (!renderchain_create_first_pass(chain, video_info))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (global->console.screen.viewports.custom_vp.width == 0)
|
if (global->console.screen.viewports.custom_vp.width == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user