diff options
| -rw-r--r-- | src/gl_draw.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx index 6af0deb8e..695c4ee08 100644 --- a/src/gl_draw.cxx +++ b/src/gl_draw.cxx @@ -128,8 +128,10 @@ void gl_remove_displaylist_fonts() \see gl_texture_pile_height(int) */ void gl_draw(const char* str, int n) { - if (has_texture_rectangle) Fl_Gl_Window_Driver::draw_string_with_texture(str, n); - else Fl_Gl_Window_Driver::global()->draw_string_legacy(str, n); + if (n > 0) { + if (has_texture_rectangle) Fl_Gl_Window_Driver::draw_string_with_texture(str, n); + else Fl_Gl_Window_Driver::global()->draw_string_legacy(str, n); + } } |
