mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
fix: unset disable var in case future processes
This commit is contained in:
parent
ef0ff5a70b
commit
ef6d3bd39d
2 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,9 @@ LsContext::LsContext(const Hooks::DeviceInfo& info, VkSwapchainKHR swapchain,
|
||||||
setenv("LSFG_DEVICE_UUID", std::to_string(deviceUUID).c_str(), 1);
|
setenv("LSFG_DEVICE_UUID", std::to_string(deviceUUID).c_str(), 1);
|
||||||
|
|
||||||
Log::debug("context", "(entering LSFG initialization)");
|
Log::debug("context", "(entering LSFG initialization)");
|
||||||
|
setenv("DISABLE_LSFG", "1", 1);
|
||||||
LSFG::initialize();
|
LSFG::initialize();
|
||||||
|
unsetenv("DISABLE_LSFG");
|
||||||
Log::debug("context", "(exiting LSFG initialization)");
|
Log::debug("context", "(exiting LSFG initialization)");
|
||||||
|
|
||||||
Log::debug("context", "(entering LSFG context creation)");
|
Log::debug("context", "(entering LSFG context creation)");
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,6 @@ namespace {
|
||||||
const VkAllocationCallbacks* pAllocator,
|
const VkAllocationCallbacks* pAllocator,
|
||||||
VkInstance* pInstance) {
|
VkInstance* pInstance) {
|
||||||
Log::debug("layer", "Initializing lsfg-vk instance layer...");
|
Log::debug("layer", "Initializing lsfg-vk instance layer...");
|
||||||
setenv("DISABLE_LSFG", "1", 1); // mustn't load further
|
|
||||||
|
|
||||||
// find layer creation info
|
// find layer creation info
|
||||||
auto* layerDesc = const_cast<VkLayerInstanceCreateInfo*>(
|
auto* layerDesc = const_cast<VkLayerInstanceCreateInfo*>(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue