From 20cc066dc7d1a78a2c7f70a838398305c2f485a4 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 29 Apr 2019 10:46:50 +0300 Subject: [PATCH] - made Vulkan Cocoa view opaque It is recommended to make content view opaque like NSOpenGLView I didn't notice any difference in performance though --- src/posix/cocoa/i_video.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 521f0648f9..fb835f9dbb 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -251,6 +251,11 @@ namespace return [self.class.layerClass layer]; } +-(BOOL) isOpaque +{ + return YES; +} + @end