mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-18 08:56:10 -04:00
Ignore invalid shader cache index (Bug #1664)
This commit is contained in:
parent
8c81e22f3e
commit
d7acb7fc7d
8
extern/shiny/Main/Factory.cpp
vendored
8
extern/shiny/Main/Factory.cpp
vendored
@ -51,6 +51,8 @@ namespace sh
|
||||
{
|
||||
assert(mCurrentLanguage != Language_None);
|
||||
|
||||
try
|
||||
{
|
||||
if (boost::filesystem::exists (mPlatform->getCacheFolder () + "/lastModified.txt"))
|
||||
{
|
||||
std::ifstream file;
|
||||
@ -69,6 +71,12 @@ namespace sh
|
||||
mShadersLastModified[sourceFile] = modified;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
std::cerr << "Failed to load shader modification index: " << e.what() << std::endl;
|
||||
mShadersLastModified.clear();
|
||||
}
|
||||
|
||||
// load configurations
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user