Skip to content

Commit

Permalink
Merge pull request GarageGames#879 from eightyeight/issue-825
Browse files Browse the repository at this point in the history
Increment vertex pointer by 3, not 1
  • Loading branch information
crabmusket committed Nov 1, 2014
2 parents 8de3657 + d123106 commit a8f2464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/source/ts/tsMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ bool TSMesh::castRayRendered( S32 frame, const Point3F & start, const Point3F &
// gonna depend on what kind of primitive it is...
if ( (draw.matIndex & TSDrawPrimitive::TypeMask) == TSDrawPrimitive::Triangles )
{
for ( S32 j = 0; j < draw.numElements-2; j++)
for ( S32 j = 0; j < draw.numElements-2; j += 3 )
{
idx0 = indices[drawStart + j + 0];
idx1 = indices[drawStart + j + 1];
Expand Down

0 comments on commit a8f2464

Please sign in to comment.