From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14

---
 source/src/video/wayland/SDL_waylandvulkan.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/source/src/video/wayland/SDL_waylandvulkan.c b/source/src/video/wayland/SDL_waylandvulkan.c
index aa5e23f..a67058f 100644
--- a/source/src/video/wayland/SDL_waylandvulkan.c
+++ b/source/src/video/wayland/SDL_waylandvulkan.c
@@ -30,11 +30,16 @@
 
 #include "SDL_waylandvideo.h"
 #include "SDL_waylandwindow.h"
-#include "SDL_assert.h"
 
 #include "SDL_loadso.h"
 #include "SDL_waylandvulkan.h"
 #include "SDL_syswm.h"
+
+#if defined(__OpenBSD__)
+#define DEFAULT_VULKAN  "libvulkan.so"
+#else
+#define DEFAULT_VULKAN  "libvulkan.so.1"
+#endif
 
 int Wayland_Vulkan_LoadLibrary(_THIS, const char *path)
 {
@@ -50,7 +55,7 @@
     if(!path)
         path = SDL_getenv("SDL_VULKAN_LIBRARY");
     if(!path)
-        path = "libvulkan.so.1";
+        path = DEFAULT_VULKAN;
     _this->vulkan_config.loader_handle = SDL_LoadObject(path);
     if(!_this->vulkan_config.loader_handle)
         return -1;

--
Gitblit v1.9.3