mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-01 15:48:49 +00:00
(gl_raster_font.c) Add early return and fix identation in gl_raster_font_render_message
This commit is contained in:
parent
90b918e7ee
commit
42caab87aa
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user