aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/win.c2
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;