mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
vulkan: fix android build
It compiles now, but it's not working correctly yet
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <common/config.h>
|
||||
|
||||
// libraries
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "VulkanWrapper.h"
|
||||
#include "vk_mem_alloc.h"
|
||||
#include "libraries/xxHash/xxhash.h"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include <dlfcn.h>
|
||||
|
||||
|
||||
namespace love {
|
||||
@@ -121,7 +122,14 @@ struct SwapChainSupportDetails {
|
||||
|
||||
class Graphics final : public love::graphics::Graphics {
|
||||
public:
|
||||
Graphics() = default;
|
||||
Graphics() {
|
||||
#ifdef LOVE_ANDROID
|
||||
auto result = volkInitialize();
|
||||
if (result != VK_SUCCESS) {
|
||||
throw love::Exception("could not initialize volk");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual ~Graphics();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user