Cleaned up exit from main to prevent MSVC warnings
authorTed Jump <tjump@users.sourceforge.net>
Fri, 17 Sep 1999 02:41:38 +0000 (02:41 +0000)
committerTed Jump <tjump@users.sourceforge.net>
Fri, 17 Sep 1999 02:41:38 +0000 (02:41 +0000)
progs/samples/overlay.c

index 41bbc26114ee371f4749eaafd96c44a764324cf7..0def2b1105e0ece1f8608b3aa00dde969fb02a48 100644 (file)
@@ -351,7 +351,7 @@ int main(int argc, char **argv)
     }
 
     if (Args(argc, argv) == GL_FALSE) {
-       exit(1);
+       return(1);
     }
 
     windW = 300;
@@ -363,7 +363,7 @@ int main(int argc, char **argv)
     glutInitDisplayMode(type);
 
     if (glutCreateWindow("Overlay Test") == GL_FALSE) {
-       exit(1);
+       return(1);
     }
 
     glutEstablishOverlay();