Fix VulkanBindings crash
This commit is contained in:
parent
e046e6b2ab
commit
de4dbc3cf7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue