diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-02-16 17:21:16 +1100 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-02-16 17:21:16 +1100 |
| commit | 4c1a11fdb9200a4a54b3b282b6acd10e6ec583ce (patch) | |
| tree | 09162047c89cb9404337b0babd0037ba3bdf583a /src/layer.cc | |
| parent | b79dc96e68848a4e313d400691bf047aa29973f6 (diff) | |
Remove sdld, we never use it
Diffstat (limited to 'src/layer.cc')
| -rw-r--r-- | src/layer.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/layer.cc b/src/layer.cc index 98b5240..24ee72e 100644 --- a/src/layer.cc +++ b/src/layer.cc @@ -4,7 +4,6 @@ #include <memory> #include <span> #include <string_view> -#include <thread> #include <unordered_map> #include <utility> #include <vector> @@ -179,10 +178,9 @@ static VKAPI_ATTR VkResult VKAPI_CALL CreateDevice( return VK_ERROR_INITIALIZATION_FAILED; } - const auto sdld = callback_info->u.pfnSetDeviceLoaderData; const auto gipa = create_info->u.pLayerInfo->pfnNextGetInstanceProcAddr; const auto gdpa = create_info->u.pLayerInfo->pfnNextGetDeviceProcAddr; - if (!sdld || !gipa || !gdpa) { + if (!gipa || !gdpa) { return VK_ERROR_INITIALIZATION_FAILED; } create_info->u.pLayerInfo = create_info->u.pLayerInfo->pNext; @@ -324,7 +322,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL CreateDevice( layer_context.contexts.try_emplace( key, std::make_shared<DeviceContext>(instance_context, *physical_context, - *pDevice, sdld, std::move(vtable))); + *pDevice, std::move(vtable))); return VK_SUCCESS; } |
