diff --git a/src/dxgi/dxgi_options.cpp b/src/dxgi/dxgi_options.cpp index 19d4e7a5..469692d1 100644 --- a/src/dxgi/dxgi_options.cpp +++ b/src/dxgi/dxgi_options.cpp @@ -40,7 +40,11 @@ namespace dxvk { this->maxDeviceMemory = VkDeviceSize(config.getOption("dxgi.maxDeviceMemory", 0)) << 20; this->maxSharedMemory = VkDeviceSize(config.getOption("dxgi.maxSharedMemory", 0)) << 20; - this->nvapiHack = config.getOption("dxgi.nvapiHack", true); + // Force nvapiHack to be disabled if NvAPI is enabled in environment + if (env::getEnvVar("DXVK_ENABLE_NVAPI") == "1") + this->nvapiHack = false; + else + this->nvapiHack = config.getOption("dxgi.nvapiHack", true); } -} \ No newline at end of file +}