1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-30 19:41:32 +00:00

Ignore invalid shader cache index (Bug #1664)

This commit is contained in:
scrawl 2014-07-26 22:24:05 +02:00
parent 8c81e22f3e
commit d7acb7fc7d

View file

@ -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
{