update parallel rdp

This commit is contained in:
Logan McNaughton committed 2022-07-04 13:26:01 -06:00
1 parent f1962e7d35
commit c55e76c5b2
3 files changed
+13 -4

No files matched your search

+10 -3
View File
@@ -46,6 +46,11 @@ void WSIPlatform::set_window_title(const std::string &)
{
}
void WSIPlatform::destroy_surface(VkInstance instance, VkSurfaceKHR surface)
{
vkDestroySurfaceKHR(instance, surface, nullptr);
}
uintptr_t WSIPlatform::get_fullscreen_monitor()
{
return 0;
@@ -294,8 +299,10 @@ void WSI::deinit_surface_and_swapchain()
tear_down_swapchain();
if (surface != VK_NULL_HANDLE)
vkDestroySurfaceKHR(context->get_instance(), surface, nullptr);
surface = VK_NULL_HANDLE;
{
platform->destroy_surface(context->get_instance(), surface);
surface = VK_NULL_HANDLE;
}
platform->event_swapchain_destroyed();
}
@@ -676,7 +683,7 @@ void WSI::teardown()
if (surface != VK_NULL_HANDLE)
{
vkDestroySurfaceKHR(context->get_instance(), surface, nullptr);
platform->destroy_surface(context->get_instance(), surface);
surface = VK_NULL_HANDLE;
}