aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pugl/detail/win.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c
index 17346cb..16c7e7a 100644
--- a/pugl/detail/win.c
+++ b/pugl/detail/win.c
@@ -194,11 +194,11 @@ puglRealize(PuglView* view)
return PUGL_BAD_BACKEND;
}
- PuglStatus st = view->backend->configure(view);
- if (st) {
- return PUGL_SET_FORMAT_FAILED;
+ PuglStatus st;
+ if ((st = view->backend->configure(view))) {
+ return st;
} else if ((st = view->backend->create(view))) {
- return PUGL_CREATE_CONTEXT_FAILED;
+ return st;
}
if (view->title) {