aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-20 16:31:37 -0500
committerDavid Robillard <d@drobilla.net>2023-01-20 16:31:37 -0500
commit8bdf159b6f741adaac2ec8bf7e250145902ed8df (patch)
treea3d6d0a34554b4f3548a535fd7a8b740539ef9cc /src
parent1f68d229aaa163d9cb42c7784d20a44463066af9 (diff)
downloadpugl-8bdf159b6f741adaac2ec8bf7e250145902ed8df.tar.gz
pugl-8bdf159b6f741adaac2ec8bf7e250145902ed8df.tar.bz2
pugl-8bdf159b6f741adaac2ec8bf7e250145902ed8df.zip
Inline flags
Maybe CodeFactor can figure this out, or maybe this really can load from the CWD despite what the documentation seems to say.
Diffstat (limited to 'src')
-rw-r--r--src/win_vulkan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win_vulkan.c b/src/win_vulkan.c
index 4a4d005..a5fd1b3 100644
--- a/src/win_vulkan.c
+++ b/src/win_vulkan.c
@@ -30,9 +30,9 @@ puglNewVulkanLoader(PuglWorld* PUGL_UNUSED(world),
return NULL;
}
- const DWORD flags = LOAD_LIBRARY_SEARCH_DEFAULT_DIRS;
const char* const filename = libraryName ? libraryName : "vulkan-1.dll";
- if (!(loader->libvulkan = LoadLibraryEx(filename, NULL, flags))) {
+ if (!(loader->libvulkan =
+ LoadLibraryEx(filename, NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS))) {
free(loader);
return NULL;
}