Browse Source

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.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
28de7cb72d
  1. 2
      src/Text/Renderer.cpp

2
src/Text/Renderer.cpp

@ -44,7 +44,7 @@ template<class T> 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;

Loading…
Cancel
Save