From 5fe1ed811d149b94d7927fe9d589265dcac1c641 Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Sun, 27 Feb 2011 20:47:11 -0800 Subject: [PATCH] Don't try to draw nothing. --- src/BitmapText.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BitmapText.cpp b/src/BitmapText.cpp index dfa9a892c1..235f8ef094 100644 --- a/src/BitmapText.cpp +++ b/src/BitmapText.cpp @@ -359,7 +359,8 @@ void BitmapText::DrawChars( bool bUseStrokeTexture ) start = end; } - DISPLAY->DrawQuads( vertices[0], iNumVertsToDraw ); + if (!vertices.empty()) + DISPLAY->DrawQuads( vertices[0], iNumVertsToDraw ); } /* sText is UTF-8. If not all of the characters in sText are available in the