aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mac.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mac.m b/src/mac.m
index 2a54134..4f5c08f 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1007,10 +1007,15 @@ PuglStatus
puglRealize(PuglView* view)
{
PuglInternals* impl = view->impl;
+
if (impl->wrapperView) {
return PUGL_FAILURE;
}
+ if (!view->backend || !view->backend->configure) {
+ return PUGL_BAD_BACKEND;
+ }
+
const NSScreen* const screen = [NSScreen mainScreen];
const double scaleFactor = [screen backingScaleFactor];