From 6a530fcaf22effb8f54f290996c02e9e90d58a7a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Jan 2023 15:57:31 -0500 Subject: MacOS: Fix Vulkan backend build --- src/mac_vulkan.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mac_vulkan.m b/src/mac_vulkan.m index 45c4839..4fdbaf6 100644 --- a/src/mac_vulkan.m +++ b/src/mac_vulkan.m @@ -75,7 +75,8 @@ puglMacVulkanCreate(PuglView* view) { PuglInternals* impl = view->impl; PuglVulkanView* drawView = [PuglVulkanView alloc]; - const NSRect rect = NSMakeRect(0, 0, view->frame.width, view->frame.height); + const NSRect rect = + NSMakeRect(0, 0, view->lastConfigure.width, view->lastConfigure.height); drawView->puglview = view; [drawView initWithFrame:rect]; -- cgit v1.2.1