Skip to content

Commit

Permalink
Fix an error in setting an array length.
Browse files Browse the repository at this point in the history
The method expects the number of 3D points, not the length of the
points array.

Change-Id: I73a1ec9da889d3184454fc9a6b27b821be7ba130
  • Loading branch information
David C. Lonie committed Feb 5, 2015
1 parent 6d67334 commit add0f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rendering/GL2PS/vtkGL2PSUtilities.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void vtkGL2PSUtilities::DrawString(const char *str,
bgVerts[10] = bgPos[1] + static_cast<double>(metrics.TopRight[1]);
bgVerts[11] = bgPos[2];

vtkGL2PSUtilities::UnprojectPoints(bgVerts, 12);
vtkGL2PSUtilities::UnprojectPoints(bgVerts, 4);

glDisable(GL_LIGHTING);
glDisableClientState(GL_COLOR_ARRAY);
Expand Down

0 comments on commit add0f25

Please sign in to comment.