Vertex data translation broke the text in PVR samples.
TRAC #11412
Indexed rendering was always broken because the size
calculated was offset incorrectly (part of a removed optimisation).
copyComponents was broken when I switched from
incremental addressing to explicitly-indexed addressing.
Signed-off-by: Daniel Koch
Author: Andrew Lewycky <andrew.lewycky@transgaming.com>
git-svn-id: https://angleproject.googlecode.com/svn/trunk@17 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/libGLESv2/geometry/VertexDataManager.cpp b/libGLESv2/geometry/VertexDataManager.cpp
index f74e928..7c2abac 100644
--- a/libGLESv2/geometry/VertexDataManager.cpp
+++ b/libGLESv2/geometry/VertexDataManager.cpp
@@ -173,7 +173,7 @@
// Handle any attributes needing translation or lifting.
if (translateOrLift.any())
{
- std::size_t count = maxIndex - minIndex + 1;
+ std::size_t count = maxIndex + 1;
std::size_t requiredSpace = 0;