diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index a03cae46c..d157c4b33 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -903,7 +903,7 @@ bool I_CreateVulkanSurface(VkInstance instance, VkSurfaceKHR *surface) windowCreateInfo.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK; windowCreateInfo.pNext = nullptr; windowCreateInfo.flags = 0; - windowCreateInfo.pView = [[CocoaVideo::GetWindow() contentView] layer]; + windowCreateInfo.pView = [CocoaVideo::GetWindow() contentView]; const VkResult result = vkCreateMacOSSurfaceMVK(instance, &windowCreateInfo, nullptr, surface); return result == VK_SUCCESS;