aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text.cpp b/src/Text.cpp
index 3ebd303..efff61f 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -627,7 +627,8 @@ namespace QuickMedia
// TODO: Clear |vertices| somehow even with editable text
for(size_t i = 0; i < FONT_ARRAY_SIZE; ++i) {
vertex_buffers[i].create(vertices[i].getVertexCount());
- vertex_buffers[i].update(&vertices[i][0], vertices[i].getVertexCount(), 0);
+ if(vertices[i].getVertexCount() > 0)
+ vertex_buffers[i].update(&vertices[i][0], vertices[i].getVertexCount(), 0);
}
//url_ranges.clear();