diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-11-13 18:59:07 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-11-14 12:50:32 +0100 |
commit | fedf4ff85c325fa164a5646785104aaa292c877b (patch) | |
tree | 3506826cc6e2eef2bdb0ade2652edb82ba35e944 /libavutil/hwcontext_vulkan.h | |
parent | bfbd5954e50e407693932b3900ca77c3daee26d7 (diff) |
avutil/vulkan: load win32 external memory functions
Diffstat (limited to 'libavutil/hwcontext_vulkan.h')
-rw-r--r-- | libavutil/hwcontext_vulkan.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h index c83fe3fb1d..fdf2a60156 100644 --- a/libavutil/hwcontext_vulkan.h +++ b/libavutil/hwcontext_vulkan.h @@ -19,6 +19,9 @@ #ifndef AVUTIL_HWCONTEXT_VULKAN_H #define AVUTIL_HWCONTEXT_VULKAN_H +#if defined(_WIN32) && !defined(VK_USE_PLATFORM_WIN32_KHR) +#define VK_USE_PLATFORM_WIN32_KHR +#endif #include <vulkan/vulkan.h> #include "pixfmt.h" |