summaryrefslogtreecommitdiff
path: root/thirdparty/vulkan/loader/dxgi_loader.c
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-10-26 15:15:19 +0100
committerGitHub <noreply@github.com>2020-10-26 15:15:19 +0100
commit825ab3b784db07534d2b89f658129b30e3d6807c (patch)
treeb237872f80f24b0b9de4904901c8d17dd0ff688a /thirdparty/vulkan/loader/dxgi_loader.c
parenta3396fabd5700f08d9390f14eab0676d42ee6f14 (diff)
parent148ad49c939f2413532ebecf92b60ce8dbc8cb8b (diff)
Merge pull request #42817 from akien-mga/vulkan-sdk-1.2.154.0
vulkan: Sync loader, headers and glslang to sdk-1.2.154.0
Diffstat (limited to 'thirdparty/vulkan/loader/dxgi_loader.c')
-rw-r--r--thirdparty/vulkan/loader/dxgi_loader.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/thirdparty/vulkan/loader/dxgi_loader.c b/thirdparty/vulkan/loader/dxgi_loader.c
deleted file mode 100644
index c2a3fa5638..0000000000
--- a/thirdparty/vulkan/loader/dxgi_loader.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "dxgi_loader.h"
-
-#include <strsafe.h>
-
-static HMODULE load_dxgi_module() {
- TCHAR systemPath[MAX_PATH] = "";
- GetSystemDirectory(systemPath, MAX_PATH);
- StringCchCat(systemPath, MAX_PATH, TEXT("\\dxgi.dll"));
-
- return LoadLibrary(systemPath);
-}
-
-typedef HRESULT (APIENTRY *PFN_CreateDXGIFactory1)(REFIID riid, void **ppFactory);
-
-HRESULT dyn_CreateDXGIFactory1(REFIID riid, void **ppFactory) {
- PFN_CreateDXGIFactory1 fpCreateDXGIFactory1 =
- (PFN_CreateDXGIFactory1)GetProcAddress(load_dxgi_module(), "CreateDXGIFactory1");
-
- if (fpCreateDXGIFactory1 != NULL)
- return fpCreateDXGIFactory1(riid, ppFactory);
-
- return DXGI_ERROR_NOT_FOUND;
-} \ No newline at end of file