From b848d137909fa71e5ede2d46fa2fcb5f1509ecba Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 Oct 2019 12:41:51 +0100 Subject: 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. --- pugl/detail/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pugl') 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; -- cgit v1.2.1