(D3D) Buildfix

This commit is contained in:
twinaphex 2015-04-06 23:38:02 +02:00
parent dbbf3c5b20
commit 7e13d24a26
3 changed files with 5 additions and 5 deletions

View File

@ -658,10 +658,10 @@ static void *d3d_init(const video_info_t *info,
/* Reinitialize renderchain as we
* might have changed pixel formats.*/
if (d3d->renderchain_driver->reinit(vid, info))
if (vid->renderchain_driver->reinit(vid, (const void*)info))
{
d3d_deinit_chain(d3d);
d3d_init_chain(d3d, video);
d3d_deinit_chain(vid);
d3d_init_chain(vid, info);
if (input && input_data)
{

View File

@ -41,7 +41,7 @@ typedef struct renderchain_driver
void *(*chain_new)(void);
bool (*init_shader)(void *data);
bool (*init_shader_fvf)(void *data, void *pass_data);
bool (*reinit)(void *data, void *info_data);
bool (*reinit)(void *data, const void *info_data);
bool (*init)(void *data,
const void *video_info_data,
void *dev_data,

View File

@ -430,7 +430,7 @@ static bool xdk_renderchain_reinit(void *data,
"Reinitializing renderchain - and textures (%u x %u @ %u bpp)\n",
d3d->tex_w, d3d->tex_h, d3d->pixel_size * CHAR_BIT);
true;
return true;
}
renderchain_driver_t xdk_renderchain = {