[native] Change DXVK_WSIDRIVER to DXVK_WSI_DRIVER

This commit is contained in:
Blisto91 2024-05-16 12:20:36 +02:00 committed by Joshie
parent 6259e86392
commit c7d61b2fc0
1 changed files with 2 additions and 2 deletions

View File

@ -24,14 +24,14 @@ namespace dxvk::wsi {
if (s_refcount++ > 0)
return;
std::string hint = dxvk::env::getEnvVar("DXVK_WSIDRIVER");
std::string hint = dxvk::env::getEnvVar("DXVK_WSI_DRIVER");
if (hint == "") {
// At least for Windows, it is reasonable to fall back to a default;
// for other platforms however we _need_ to know which WSI to use!
#if defined(DXVK_WSI_WIN32)
hint = "Win32";
#else
throw DxvkError("DXVK_WSIDRIVER environment variable unset");
throw DxvkError("DXVK_WSI_DRIVER environment variable unset");
#endif
}