diff options
author | David Robillard <d@drobilla.net> | 2019-10-27 12:41:51 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-03 21:03:18 +0100 |
commit | b848d137909fa71e5ede2d46fa2fcb5f1509ecba (patch) | |
tree | fd7d5c4fd0058ce361e0a3746c77079f21afdad4 | |
parent | 5491a443b03cdc0f49b259873b7fc5919242a36c (diff) |
Windows: Do not require backends to have a surface
This was just leftover cruft from before error handling was cleaned up, any
failure to configure must now be reported by the backend.
-rw-r--r-- | pugl/detail/win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c index b9004b2..e1deaf1 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -172,7 +172,7 @@ puglCreateWindow(PuglView* view, const char* title) } PuglStatus st = view->backend->configure(view); - if (st || !impl->surface) { + if (st) { return PUGL_SET_FORMAT_FAILED; } else if ((st = view->backend->create(view))) { return PUGL_CREATE_CONTEXT_FAILED; |