From de4dbc3cf763a47748edf40260432cfc80de8980 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 3 Aug 2018 15:56:27 +0200 Subject: [PATCH] Fix VulkanBindings crash --- src/utils/VulkanBinding.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {