Browse Source

Text: added TODO.

pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
9792f2b7e0
  1. 1
      src/Text/Renderer.cpp

1
src/Text/Renderer.cpp

@ -357,6 +357,7 @@ void AbstractRenderer::reserve(const uint32_t glyphCount, const BufferUsage vert
/* Prefill index buffer */ /* Prefill index buffer */
unsigned char* const indices = static_cast<unsigned char*>(bufferMapImplementation(_indexBuffer, indexData.size())); unsigned char* const indices = static_cast<unsigned char*>(bufferMapImplementation(_indexBuffer, indexData.size()));
CORRADE_INTERNAL_ASSERT(indices); CORRADE_INTERNAL_ASSERT(indices);
/** @todo Emscripten: it can be done without this copying altogether */
std::copy(indexData.begin(), indexData.end(), indices); std::copy(indexData.begin(), indexData.end(), indices);
bufferUnmapImplementation(_indexBuffer); bufferUnmapImplementation(_indexBuffer);
} }

Loading…
Cancel
Save