From 28de7cb72d60d47bcc6e2f75fca30f101e2d8038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 13 Dec 2013 15:25:31 +0100 Subject: [PATCH] Text: fix array index type in Renderer. When we have 256 vertices and >256 indices, we need more than 8 bits to index the index array. The tests are passing again. --- src/Text/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Renderer.cpp b/src/Text/Renderer.cpp index 9b112e40e..0ce12aeba 100644 --- a/src/Text/Renderer.cpp +++ b/src/Text/Renderer.cpp @@ -44,7 +44,7 @@ template void createIndices(void* output, const UnsignedInt glyphCount) 1---3 1 3---4 */ const T vertex = T(i)*4; - const T pos = T(i)*6; + const UnsignedInt pos = T(i)*6; out[pos] = vertex; out[pos+1] = vertex+1; out[pos+2] = vertex+2;