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
parent 86487c20
......@@ -173,7 +173,7 @@ GLenum VertexDataManager::internalPreRenderValidate(const AttributeState *attrib
// 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;
......
......@@ -213,11 +213,11 @@ struct VertexDataConverter
{
if (WidenRule::initialWidth > elementindex)
{
*out = Converter::convert(in[elementindex]);
out[elementindex] = Converter::convert(in[elementindex]);
}
else
{
*out = defaultvalue;
out[elementindex] = defaultvalue;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment