I have these nice variables indicating whether the geometry cache for a

certain object was already filled, but i never set them to true...


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1146 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2012-03-16 03:17:37 +00:00
parent 833166240f
commit 40e7dfa35c

View File

@ -328,7 +328,10 @@ static void fghCircleTable(double **sint,double **cost,const int n)
static void fghCube( GLdouble dSize, GLboolean useWireMode )
{
if (!cubeCached)
{
fghCubeGenerate();
cubeCached = TRUE;
}
if (dSize!=1.)
{
@ -342,7 +345,10 @@ static void fghCube( GLdouble dSize, GLboolean useWireMode )
static void fghTetrahedron( GLboolean useWireMode )
{
if (!tetrCached)
{
fghTetrahedronGenerate();
tetrCached = TRUE;
}
fghDrawGeometry(GL_TRIANGLES,tetr_verts,tetr_norms,TETR_VERT_PER_TETR,useWireMode);
}