summaryrefslogtreecommitdiffstats
path: root/progs/redbook/fog.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-02-12 16:07:47 +0000
committerBrian Paul <[email protected]>2002-02-12 16:07:47 +0000
commit38d042a4ad76ccc30b50571135bbf0fdb912d656 (patch)
tree8d41689e3dc45fee156c87c762dec6a17d9b62df /progs/redbook/fog.c
parent69d4ae7bb3bf4a535673cb9ba99d181c12a52e43 (diff)
silence compiler warnings
Diffstat (limited to 'progs/redbook/fog.c')
-rw-r--r--progs/redbook/fog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/redbook/fog.c b/progs/redbook/fog.c
index 888ee138a49..7d13109ed9b 100644
--- a/progs/redbook/fog.c
+++ b/progs/redbook/fog.c
@@ -60,9 +60,10 @@ selectFog(int mode)
glFogf(GL_FOG_START, 1.0);
glFogf(GL_FOG_END, 5.0);
/* falls through */
+ mode = 0xfff;
case GL_EXP2:
case GL_EXP:
- glFogi(GL_FOG_MODE, mode);
+ glFogiv(0xf/*GL_FOG_MODE*/, (int *) &mode);
glutPostRedisplay();
break;
case 0:
@@ -190,7 +191,7 @@ main(int argc, char **argv)
glutDisplayFunc(display);
glutCreateMenu(selectFog);
glutAddMenuEntry("Fog EXP", GL_EXP);
- glutAddMenuEntry("Fog EXP2", GL_EXP2);
+ glutAddMenuEntry("Fog EXP2", /*GL_EXP2*/ 0xffff);
glutAddMenuEntry("Fog LINEAR", GL_LINEAR);
glutAddMenuEntry("Quit", 0);
glutAttachMenu(GLUT_RIGHT_BUTTON);