summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-05-02 17:55:10 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-05-02 17:55:10 +0000
commit7fe70b51e82516b8acc0ebdfc4fd2bdfefecac2c (patch)
tree86888d538117db58d87a714b922a339c569ed1d6
parent3e713fe38c88401f14d5368f2904713aedcf3726 (diff)
Don't call glPolygonMode
-rw-r--r--progs/demos/terrain.c10
-rw-r--r--progs/samples/tri.c9
-rw-r--r--src/glut/mini/models.c2
3 files changed, 1 insertions, 20 deletions
diff --git a/progs/demos/terrain.c b/progs/demos/terrain.c
index 98a4385c07..9fcc111192 100644
--- a/progs/demos/terrain.c
+++ b/progs/demos/terrain.c
@@ -545,16 +545,6 @@ key(unsigned char k, int x, int y)
case 'z':
v -= 0.5;
break;
- case 'p':
- if (poutline) {
- glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
- poutline = 0;
- }
- else {
- glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
- poutline = 1;
- }
- break;
case 'j':
joyactive = (!joyactive);
break;
diff --git a/progs/samples/tri.c b/progs/samples/tri.c
index e6f39eb075..a0c3169f01 100644
--- a/progs/samples/tri.c
+++ b/progs/samples/tri.c
@@ -140,15 +140,6 @@ static void Key(unsigned char key, int x, int y)
zoom = 10;
}
break;
- case '1':
- glPolygonMode(GL_FRONT_AND_BACK, GL_POINT);
- break;
- case '2':
- glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
- break;
- case '3':
- glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
- break;
case '4':
state = POINT;
break;
diff --git a/src/glut/mini/models.c b/src/glut/mini/models.c
index de8271a375..12bb770d81 100644
--- a/src/glut/mini/models.c
+++ b/src/glut/mini/models.c
@@ -223,7 +223,7 @@ glutWireTorus(GLdouble innerRadius, GLdouble outerRadius,
GLint nsides, GLint rings)
{
/* glPushAttrib(GL_POLYGON_BIT); */
- glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
+/* glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); */
doughnut(innerRadius, outerRadius, nsides, rings);
/* glPopAttrib(); */
}