Skip to content

Commit

Permalink
VK: Disable mesa overlay on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Jan 7, 2024
1 parent c047d25 commit 4ab9b3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vkrender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -864,13 +864,16 @@ void AsyVkRender::createInstance()
}
#endif

#if !defined(_WIN32)
// mesa is only supported by linux, ignore on windows
if (settings::verbose > 2) {
if (isLayerSupported(MESA_OVERLAY_LAYER)) {
validationLayers.emplace_back(MESA_OVERLAY_LAYER);
} else if (settings::verbose > 1) {
std::cout << "Mesa overlay layer is not supported by the current Vulkan instance." << std::endl;
}
}
#endif

auto const instanceCI = vk::InstanceCreateInfo(
vk::InstanceCreateFlagBits::eEnumeratePortabilityKHR,
Expand Down

0 comments on commit 4ab9b3d

Please sign in to comment.