1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 22:54:16 +01:00

[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

View File

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