aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Halase <jordan@halase.me>2020-10-14 14:59:27 -0500
committerJordan Halase <jordan@halase.me>2020-10-14 14:59:27 -0500
commitb42ae422fba2d9d8b8d9e15fdec29ae70b6ed51d (patch)
tree705433bf65d6ea38f20c83489d82b1cf2dd3a3f8
parente552cb32de829be6bdcac56f8760257152b3ab41 (diff)
Fix misleading errors in puglRealize()
-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) {