diff --git a/src/wsi/glfw/wsi_platform_glfw.cpp b/src/wsi/glfw/wsi_platform_glfw.cpp index ee818bb20d7..62d7271affe 100644 --- a/src/wsi/glfw/wsi_platform_glfw.cpp +++ b/src/wsi/glfw/wsi_platform_glfw.cpp @@ -44,7 +44,7 @@ namespace dxvk::wsi { if (extensionCount == 0) throw DxvkError(str::format("GLFW WSI: Failed to get required instance extensions")); - std::vector names(extensionCount); + std::vector names; for (uint32_t i = 0; i < extensionCount; ++i) { names.push_back(extensionArray[i]); }