(gl_raster_font.c) Add early return and fix identation in gl_raster_font_render_message

This commit is contained in:
Higor Eurípedes 2015-06-14 08:49:33 -03:00
parent 90b918e7ee
commit 42caab87aa

View File

@ -266,6 +266,9 @@ static void gl_raster_font_render_message(
const GLfloat color[4], GLfloat pos_x, GLfloat pos_y,
unsigned text_align)
{
if (!msg || !*msg || !font->gl)
return;
//If the font height is not supported just draw as usual
if (!font->font_driver->get_line_height)
{