mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix build with Vulkan disabled and no Vulkan headers installed.
This commit is contained in:
parent
2b505b74b9
commit
4dd8f68120
14 changed files with 56 additions and 10 deletions
|
@ -28,6 +28,8 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
#ifdef VULKAN_ENABLED
|
||||
|
||||
#include "vulkan_context_x11.h"
|
||||
|
||||
#ifdef USE_VOLK
|
||||
|
@ -59,3 +61,5 @@ VulkanContextX11::VulkanContextX11() {
|
|||
|
||||
VulkanContextX11::~VulkanContextX11() {
|
||||
}
|
||||
|
||||
#endif // VULKAN_ENABLED
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#ifndef VULKAN_CONTEXT_X11_H
|
||||
#define VULKAN_CONTEXT_X11_H
|
||||
|
||||
#ifdef VULKAN_ENABLED
|
||||
|
||||
#include "drivers/vulkan/vulkan_context.h"
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
|
@ -44,4 +46,6 @@ public:
|
|||
~VulkanContextX11();
|
||||
};
|
||||
|
||||
#endif // VULKAN_ENABLED
|
||||
|
||||
#endif // VULKAN_CONTEXT_X11_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue