Fix VulkanBindings crash

This commit is contained in:
Corentin Wallez 2018-08-03 15:56:27 +02:00 committed by Corentin Wallez
parent e046e6b2ab
commit de4dbc3cf7
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ namespace utils {
std::vector<const char*> 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) {