This commit is contained in:
twinaphex 2015-01-24 03:07:13 +01:00
parent d02b6ddd69
commit a2d56885f8
2 changed files with 8 additions and 7 deletions

View File

@ -40,4 +40,3 @@ const d3d_font_renderer_t *d3d_font_init_first(void *data,
return NULL;
}

View File

@ -30,16 +30,18 @@ bool gl_font_init_first(const gl_font_renderer_t **font_driver, void **font_hand
void *video_data, const char *font_path, float font_size)
{
unsigned i;
for (i = 0; gl_font_backends[i]; i++)
{
void *data = gl_font_backends[i]->init(video_data, font_path, font_size);
if (data)
{
if (!data)
continue;
*font_driver = gl_font_backends[i];
*font_handle = data;
return true;
}
}
return false;
}