From ee3278f0ac66e34b293912b83f8c9e044a0dc8b0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 May 2021 14:45:09 -0400 Subject: MacOS: Make puglGetNativeWorld() return the NSApplication --- src/mac.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mac.m b/src/mac.m index e3af330..60ea6c8 100644 --- a/src/mac.m +++ b/src/mac.m @@ -871,9 +871,9 @@ puglFreeWorldInternals(PuglWorld* world) } void* -puglGetNativeWorld(PuglWorld* PUGL_UNUSED(world)) +puglGetNativeWorld(PuglWorld* world) { - return NULL; + return world->impl->app; } PuglInternals* -- cgit v1.2.1