Skip to content

Commit

Permalink
Merge pull request #73450 from Calinou/windows-vulkan-disable-amd-swi…
Browse files Browse the repository at this point in the history
…tchable-graphics

Disable AMD switchable graphics on Windows with Vulkan to fix driver issue
  • Loading branch information
akien-mga committed May 24, 2023
2 parents 6d88c83 + 950c5b5 commit 774f4a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/windows/vulkan_context_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Error VulkanContextWindows::window_create(DisplayServer::WindowID p_window_id, D
}

VulkanContextWindows::VulkanContextWindows() {
// Workaround for Vulkan not working on setups with AMD integrated graphics + NVIDIA dedicated GPU (GH-57708).
// This prevents using AMD integrated graphics with Vulkan entirely, but it allows the engine to start
// even on outdated/broken driver setups.
OS::get_singleton()->set_environment("DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1", "1");
}

VulkanContextWindows::~VulkanContextWindows() {
Expand Down

0 comments on commit 774f4a7

Please sign in to comment.