summaryrefslogtreecommitdiffstats
path: root/progs/samples
diff options
context:
space:
mode:
Diffstat (limited to 'progs/samples')
-rw-r--r--progs/samples/overlay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/samples/overlay.c b/progs/samples/overlay.c
index 41bbc26114e..0def2b1105e 100644
--- a/progs/samples/overlay.c
+++ b/progs/samples/overlay.c
@@ -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();