diff --git a/engine/src/flutter/vulkan/vulkan_window.cc b/engine/src/flutter/vulkan/vulkan_window.cc index 907a15a097..4b9be79513 100644 --- a/engine/src/flutter/vulkan/vulkan_window.cc +++ b/engine/src/flutter/vulkan/vulkan_window.cc @@ -129,11 +129,6 @@ sk_sp VulkanWindow::CreateSkiaBackendContext() { return nullptr; } - // The Skia backend context takes ownership of the device and the instance. - // Make sure we release our ownership now. - logical_device_->ReleaseDeviceOwnership(); - application_->ReleaseInstanceOwnership(); - auto context = sk_make_sp(); context->fInstance = application_->GetInstance(); context->fPhysicalDevice = logical_device_->GetPhysicalDeviceHandle(); @@ -146,6 +141,7 @@ sk_sp VulkanWindow::CreateSkiaBackendContext() { surface_->GetNativeSurface().GetSkiaExtensionName(); context->fFeatures = skia_features; context->fInterface.reset(interface.release()); + context->fOwnsInstanceAndDevice = false; return context; }