1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 22:08:59 +01:00

[dxvk] Don't read or create state cache file if state cache is disabled

This commit is contained in:
Philip Rebohle 2022-07-11 01:19:09 +02:00
parent 00cfee9d17
commit ca52c5a67f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -222,6 +222,9 @@ namespace dxvk {
std::string useStateCache = env::getEnvVar("DXVK_STATE_CACHE");
m_enable = useStateCache != "0" && device->config().enableStateCache;
if (!m_enable)
return;
bool newFile = !readCacheFile();
if (newFile) {