summaryrefslogtreecommitdiff
path: root/platform/macos/vulkan_context_macos.mm
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-31 14:29:05 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-10-31 14:29:05 +0100
commit9188bc734155e14c97e24649a22213b625b9b6cf (patch)
tree993d3951ef28137ec0284e703356e090e89b73fd /platform/macos/vulkan_context_macos.mm
parentcd25e48456e58704f1450954a0c94b1e7fe079f4 (diff)
parent4dd8f68120bc3d3be94e0556ccfef9ee4bf8311a (diff)
Merge pull request #67879 from bruvzg/fix_no_vlk
Fix build with Vulkan disabled and no Vulkan headers installed.
Diffstat (limited to 'platform/macos/vulkan_context_macos.mm')
-rw-r--r--platform/macos/vulkan_context_macos.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/macos/vulkan_context_macos.mm b/platform/macos/vulkan_context_macos.mm
index cf317f3c68..1df6b3ed18 100644
--- a/platform/macos/vulkan_context_macos.mm
+++ b/platform/macos/vulkan_context_macos.mm
@@ -28,6 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
+#ifdef VULKAN_ENABLED
#include "vulkan_context_macos.h"
#ifdef USE_VOLK
#include <volk.h>
@@ -57,3 +58,5 @@ VulkanContextMacOS::VulkanContextMacOS() {
VulkanContextMacOS::~VulkanContextMacOS() {
}
+
+#endif // VULKAN_ENABLED