diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-10-25 22:20:54 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-10-26 08:55:05 +0300 |
commit | 4dd8f68120bc3d3be94e0556ccfef9ee4bf8311a (patch) | |
tree | 8d0dd1b58dedbdae7a84d1f36317e411ebabcdf2 /platform/linuxbsd | |
parent | 2b505b74b9b0a7005586ecaa9aa1236e86b18437 (diff) |
Fix build with Vulkan disabled and no Vulkan headers installed.
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/vulkan_context_x11.cpp | 4 | ||||
-rw-r--r-- | platform/linuxbsd/vulkan_context_x11.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/platform/linuxbsd/vulkan_context_x11.cpp b/platform/linuxbsd/vulkan_context_x11.cpp index b4f585726f..92aaf33b05 100644 --- a/platform/linuxbsd/vulkan_context_x11.cpp +++ b/platform/linuxbsd/vulkan_context_x11.cpp @@ -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 diff --git a/platform/linuxbsd/vulkan_context_x11.h b/platform/linuxbsd/vulkan_context_x11.h index 0c4a6cd278..0adb50ef44 100644 --- a/platform/linuxbsd/vulkan_context_x11.h +++ b/platform/linuxbsd/vulkan_context_x11.h @@ -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 |