Solution for bug in tilesortspu_DrawRangeElements.
All the for loops in this function should use i=0 not i=start. Start
and End have nothing to do with which parts of the index buffer should
be sent, they refer to the maximum and minimum array index contained
in the index buffer. If you like you could add an if statement in the
for loops to filter out array indexes that are not bound by start and
end.
for (i = start ; i < count ; i++)
{
//pack array element
}
should be replaced with:
for (i = 0 ; i < count ; i++)
{
//pack array element
}
Thank you for your time,
James Steven Supancic III
|