mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[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
7c4d602863
commit
8d413e2d09
@ -958,8 +958,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…
x
Reference in New Issue
Block a user