Pass d3d->font_handle to 'init_first'

This commit is contained in:
twinaphex 2015-03-30 00:34:30 +02:00
parent ff57f65841
commit 8f3e83ad10
2 changed files with 2 additions and 1 deletions

View File

@ -311,7 +311,7 @@ static bool d3d_initialize(d3d_video_t *d3d, const video_info_t *info)
strlcpy(settings->video.font_path, "game:\\media\\Arial_12.xpr",
sizeof(settings->video.font_path));
#endif
if (!d3d_font_init_first(&d3d->font_driver, NULL,
if (!d3d_font_init_first(&d3d->font_driver, &d3d->font_handle,
d3d, settings->video.font_path, 0))
{
RARCH_ERR("[D3D]: Failed to initialize font renderer.\n");

View File

@ -100,6 +100,7 @@ void d3d_make_d3dpp(void *data, const video_info_t *info, D3DPRESENT_PARAMETERS
typedef struct d3d_video
{
const void *font_driver;
void *font_handle;
const gfx_ctx_driver_t *ctx_driver;
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
#ifdef _XBOX