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:
parent
00cfee9d17
commit
ca52c5a67f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user