mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[vulkan] Disable fullscreen exclusive support on wine
Fixes issues with RenderDoc captures on winevulkan.
This commit is contained in:
parent
9a40c1e6ae
commit
cf1ff99b10
@ -11,6 +11,14 @@ namespace dxvk::vk {
|
||||
PresenterDevice device,
|
||||
const PresenterDesc& desc)
|
||||
: m_vki(vki), m_vkd(vkd), m_device(device), m_window(window) {
|
||||
// As of Wine 5.9, winevulkan provides this extension, but does
|
||||
// not filter the pNext chain for VkSwapchainCreateInfoKHR properly
|
||||
// before passing it to the Linux sude, which breaks RenderDoc.
|
||||
if (::GetModuleHandle("winevulkan.dll")) {
|
||||
Logger::warn("winevulkan detected, disabling exclusive fullscreen support");
|
||||
m_device.features.fullScreenExclusive = false;
|
||||
}
|
||||
|
||||
if (createSurface() != VK_SUCCESS)
|
||||
throw DxvkError("Failed to create surface");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user