Skip to content

Commit

Permalink
Disable AMD switchable graphics device to avoid enumerating physical …
Browse files Browse the repository at this point in the history
…device error on certain platform (BoomingTech#137)
  • Loading branch information
kwbm authored and mymetalseed committed Apr 29, 2022
1 parent 7879c42 commit 1ae6334
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ void Pilot::PVulkanContext::initialize(GLFWwindow* window)
// https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros
char const* vk_layer_path = PILOT_XSTR(PILOT_VK_LAYER_PATH);
SetEnvironmentVariableA("VK_LAYER_PATH", vk_layer_path);
SetEnvironmentVariableA("DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1", "1");
#else
#error Unknown Compiler
#endif
Expand Down

0 comments on commit 1ae6334

Please sign in to comment.