diff --git a/src/utils/VulkanBinding.cpp b/src/utils/VulkanBinding.cpp index 2c3a794f40..81068d332a 100644 --- a/src/utils/VulkanBinding.cpp +++ b/src/utils/VulkanBinding.cpp @@ -60,7 +60,8 @@ namespace utils { std::vector requiredExtensions(glfwInstanceExtensions, glfwInstanceExtensions + extensionCount); - return dawn_native::vulkan::CreateDevice(requiredExtensions); + mDevice = dawn_native::vulkan::CreateDevice(requiredExtensions); + return mDevice; } uint64_t GetSwapChainImplementation() override { if (mSwapchainImpl.userData == nullptr) {