mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 22:54:16 +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,
|
PresenterDevice device,
|
||||||
const PresenterDesc& desc)
|
const PresenterDesc& desc)
|
||||||
: m_vki(vki), m_vkd(vkd), m_device(device), m_window(window) {
|
: 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)
|
if (createSurface() != VK_SUCCESS)
|
||||||
throw DxvkError("Failed to create surface");
|
throw DxvkError("Failed to create surface");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user