diff options
author | Jordan Halase <jordan@halase.me> | 2020-10-14 14:59:27 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-16 18:23:01 +0200 |
commit | f86e7d57d9b521a9c058cc7e7f0cc88216bed3ba (patch) | |
tree | 9b8d3979d52fac0ddc3c8b61465b21df4f70f9a4 /pugl/detail/win.c | |
parent | 4ee94da48280307297a9fba720d4cb692f8d5c3f (diff) | |
download | pugl-f86e7d57d9b521a9c058cc7e7f0cc88216bed3ba.tar.gz pugl-f86e7d57d9b521a9c058cc7e7f0cc88216bed3ba.tar.bz2 pugl-f86e7d57d9b521a9c058cc7e7f0cc88216bed3ba.zip |
Windows: Return backend errors directly
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r-- | pugl/detail/win.c | 8 |
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) { |