From f86e7d57d9b521a9c058cc7e7f0cc88216bed3ba Mon Sep 17 00:00:00 2001 From: Jordan Halase Date: Wed, 14 Oct 2020 14:59:27 -0500 Subject: Windows: Return backend errors directly --- pugl/detail/win.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pugl/detail') 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) { -- cgit v1.2.1