mirror of
https://github.com/simple64/simple64.git
synced 2026-11-15 05:59:21 +01:00
update parallel rdp
This commit is contained in:
1 parent
f1962e7d35
commit
c55e76c5b2
3 files changed
+13
-4
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user