mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 03:41:01 +00:00
Disable mesa device select layer. Closes #2093
This commit is contained in:
@@ -108,6 +108,11 @@ class VulkanHook : LibraryHook
|
||||
Process::RegisterEnvironmentModification(
|
||||
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_RTSS_LAYER", "1"));
|
||||
|
||||
// mesa device select layer crashes when it calls GPDP2 inside vkCreateInstance, which fails on
|
||||
// the current loader.
|
||||
Process::RegisterEnvironmentModification(
|
||||
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "NODEVICE_SELECT", "1"));
|
||||
|
||||
#if ENABLED(RDOC_WIN32)
|
||||
// on windows support self-hosted capture by checking our filename and tweaking the env var we
|
||||
// set
|
||||
|
||||
@@ -4144,6 +4144,11 @@ ReplayStatus Vulkan_CreateReplayDevice(RDCFile *rdc, const ReplayOptions &opts,
|
||||
Process::RegisterEnvironmentModification(
|
||||
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_VULKAN_OBS_CAPTURE", "1"));
|
||||
|
||||
// mesa device select layer crashes when it calls GPDP2 inside vkCreateInstance, which fails on
|
||||
// the current loader.
|
||||
Process::RegisterEnvironmentModification(
|
||||
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "NODEVICE_SELECT", "1"));
|
||||
|
||||
Process::ApplyEnvironmentModification();
|
||||
|
||||
void *module = LoadVulkanLibrary();
|
||||
|
||||
Reference in New Issue
Block a user