diff --git a/src/d3d9/d3d9_interop.cpp b/src/d3d9/d3d9_interop.cpp index adc8e39812a..9306af71710 100644 --- a/src/d3d9/d3d9_interop.cpp +++ b/src/d3d9/d3d9_interop.cpp @@ -57,7 +57,7 @@ namespace dxvk { if (pExtensionCount == nullptr) return D3DERR_INVALIDCALL; - auto extensions = m_interface->GetInstance()->extensions().getExtensionList(); + auto extensions = m_interface->GetInstance()->extensions().toList(); if (ppExtensions == nullptr) { // Count extensions UINT count = 0; diff --git a/src/dxvk/dxvk_extensions.h b/src/dxvk/dxvk_extensions.h index f1c3e55cfb2..b0f690f61b8 100644 --- a/src/dxvk/dxvk_extensions.h +++ b/src/dxvk/dxvk_extensions.h @@ -345,11 +345,16 @@ namespace dxvk { DxvkExt khrSurface = { VK_KHR_SURFACE_EXTENSION_NAME, DxvkExtMode::Required }; /** - * \brief Get list of supported extensions + * \brief Get all supported extensions in a list * \returns List of supported extensions */ - std::initializer_list getExtensionList() const { - return { &extDebugUtils, &extSurfaceMaintenance1, &khrGetSurfaceCapabilities2, &khrSurface }; + std::vector toList() const { + return { + &extDebugUtils, + &extSurfaceMaintenance1, + &khrGetSurfaceCapabilities2, + &khrSurface + }; } };