Skip to content

Commit

Permalink
iCubGui: In BVHNodeEYE switch from glutSolidSphere to gluSphere
Browse files Browse the repository at this point in the history
This is for uniformity with similar classes.

Furthermore, when used with freeglut from vcpkg this fixes the
crash described in robotology/robotology-superbuild#355 .
  • Loading branch information
traversaro authored and pattacini committed May 4, 2020
1 parent 65935d5 commit f755593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/iCubGui/src/bvhnodeeye.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class BVHNodeEYE : public BVHNodeEND
virtual void drawJoint()
{
glColor4f(1.0,1.0,1.0,1.0);
glutSolidSphere(20.32,16,16);
gluSphere(cyl,20.32,16,16);
glTranslated(0.0,0.0,20.32);
glColor4f(0.0,0.0,0.0,1.0);
glutSolidSphere(5.08,16,16);
gluSphere(cyl,5.08,16,16);
}
};

Expand Down

0 comments on commit f755593

Please sign in to comment.