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 committed May 3, 2020
1 parent dce0711 commit 0b469d1
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 0b469d1

Please sign in to comment.