get rid of fmt dependency since we are on C++23
This commit is contained in:
12
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
12
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
@@ -36,7 +36,7 @@ Util::IntrusivePtr<Context> InitVulkanContext(WSIPlatform *platform, unsigned nu
|
||||
new_context->set_system_handles(system_handles);
|
||||
|
||||
if (!new_context->init_instance(instance_ext.data(), instance_ext.size(), CONTEXT_CREATION_ENABLE_ADVANCED_WSI_BIT)) {
|
||||
Util::panic("Failed to create Vulkan instance.\n");
|
||||
panic("Failed to create Vulkan instance.\n");
|
||||
}
|
||||
|
||||
VkSurfaceKHR tmp_surface = platform->create_surface(new_context->get_instance(), VK_NULL_HANDLE);
|
||||
@@ -49,7 +49,7 @@ Util::IntrusivePtr<Context> InitVulkanContext(WSIPlatform *platform, unsigned nu
|
||||
}
|
||||
|
||||
if (!ret) {
|
||||
Util::panic("Failed to create Vulkan device.\n");
|
||||
panic("Failed to create Vulkan device.\n");
|
||||
}
|
||||
|
||||
return new_context;
|
||||
@@ -64,15 +64,15 @@ void ParallelRDP::LoadWSIPlatform(const std::shared_ptr<WSIPlatform> &wsi_platfo
|
||||
Context::SystemHandles handles;
|
||||
|
||||
if (!wsi->init_from_existing_context(InitVulkanContext(wsi_platform.get(), 1, handles))) {
|
||||
Util::panic("Failed to initialize WSI: init_from_existing_context() failed");
|
||||
panic("Failed to initialize WSI: init_from_existing_context() failed");
|
||||
}
|
||||
|
||||
if (!wsi->init_device()) {
|
||||
Util::panic("Failed to initialize WSI: init_device() failed");
|
||||
panic("Failed to initialize WSI: init_device() failed");
|
||||
}
|
||||
|
||||
if (!wsi->init_surface_swapchain()) {
|
||||
Util::panic("Failed to initialize WSI: init_surface_swapchain() failed");
|
||||
panic("Failed to initialize WSI: init_surface_swapchain() failed");
|
||||
}
|
||||
|
||||
windowInfo = newWindowInfo;
|
||||
@@ -119,7 +119,7 @@ void ParallelRDP::Init(const std::shared_ptr<WSIPlatform> &wsiPlatform,
|
||||
offset, 8 * 1024 * 1024, 4 * 1024 * 1024, flags);
|
||||
|
||||
if (!command_processor->device_is_supported()) {
|
||||
Util::panic("This device probably does not support 8/16-bit storage. Make sure you're using up-to-date drivers!");
|
||||
panic("This device probably does not support 8/16-bit storage. Make sure you're using up-to-date drivers!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user