mirror of https://github.com/doitsujin/dxvk
[dxvk] Fix opening state cache files for writing
operator bool() only checks if errors have occured in previous writes, so we'd be missing out on the first cache entry written.
This commit is contained in:
parent
d1f57e13b7
commit
2f6306815e
|
@ -962,8 +962,8 @@ namespace dxvk {
|
|||
m_writerQueue.pop();
|
||||
}
|
||||
|
||||
if (!file) {
|
||||
file = std::ofstream(getCacheFileName().c_str(),
|
||||
if (!file.is_open()) {
|
||||
file.open(getCacheFileName().c_str(),
|
||||
std::ios_base::binary |
|
||||
std::ios_base::app);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue