aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pugl_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pugl_test.c b/pugl_test.c
index de61f61..eaf95f8 100644
--- a/pugl_test.c
+++ b/pugl_test.c
@@ -241,7 +241,9 @@ main(int argc, char** argv)
puglIgnoreKeyRepeat(view, ignoreKeyRepeat);
puglSetEventFunc(view, onEvent);
- puglCreateWindow(view, "Pugl Test");
+ if (puglCreateWindow(view, "Pugl Test")) {
+ return 1;
+ }
puglEnterContext(view);
glEnable(GL_DEPTH_TEST);