mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
vulkan: use dynamic loading
If Vulkan ist not available on a system the program will still run, and it will fallback to opengl.
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "common/config.h"
|
||||
|
||||
#ifdef LOVE_ANDROID
|
||||
#include "volk.h"
|
||||
#define VMA_STATIC_VULKAN_FUNCTIONS 0
|
||||
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 0
|
||||
#else
|
||||
#include <vulkan/vulkan.h>
|
||||
#define VMA_STATIC_VULKAN_FUNCTIONS 0
|
||||
#define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
|
||||
#endif
|
||||
#include "vk_mem_alloc.h"
|
||||
|
||||
Reference in New Issue
Block a user