summaryrefslogtreecommitdiffstats
path: root/progs/demos/morph3d.c
diff options
context:
space:
mode:
authorXavier Bachelot <[email protected]>2007-07-06 12:56:21 -0600
committerBrian <[email protected]>2007-07-06 12:56:21 -0600
commitf98bdfca574478837b33c97d131dad4833e3ee12 (patch)
treed8fd034951c7954669adbe0fa264c8824bbea9ad /progs/demos/morph3d.c
parentffa2659204121f703208782ff225a22e0c21b173 (diff)
call glutInit(), bug 11486
Diffstat (limited to 'progs/demos/morph3d.c')
-rw-r--r--progs/demos/morph3d.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/progs/demos/morph3d.c b/progs/demos/morph3d.c
index 162a6ff847e..6aca8270ff5 100644
--- a/progs/demos/morph3d.c
+++ b/progs/demos/morph3d.c
@@ -826,7 +826,7 @@ static void pinit(void)
}
-static void INIT(void)
+int main(int argc, char **argv)
{
printf("Morph 3D - Shows morphing platonic polyhedra\n");
printf("Author: Marcelo Fernandes Vianna ([email protected])\n\n");
@@ -841,6 +841,7 @@ static void INIT(void)
object=1;
+ glutInit(&argc, argv);
glutInitWindowPosition(0,0);
glutInitWindowSize(640,480);
@@ -888,9 +889,3 @@ static void INIT(void)
glutMainLoop();
}
-
-int main(int argc, char **argv)
-{
- INIT();
- return(0);
-}